gethostbyname(string) takes a hostname and resolves it into an IP address in ascii notation. If the argument already is a valid IP address, it will be returned unchanged. The hostname lookup is done by the standard procedure of the operating system. In case of an error an exception of type io is being raised.
