Updated to search for gethostbyname