gethostbyname Get the IP address corresponding to a given Internet host name Description stringgethostbyname stringhostname Returns the IP address of the Internet host specified by hostname or a string containing the unmodified hostname on failure. A simple <function>gethostbyname</function> example ]]> See also gethostbyaddr, and gethostbynamel.