Sockets Toolkit - gethostbyname


Loadable Function: ipaddres = gethostbyname (hostname)

Return IP address for host name.

For example:

gethostbyname ("localhost")
  ⇒ 127.0.0.1

See the gethostbyname man pages for details.