Remove use of gethostbyname() in favor of inet_pton().