gethostbyname() was unnecessary. A failed DNS lookup means the host is unreachable!