Overload gethostbyname in the proxify method