host_info


host_info(n)
      

Access the Internet host database to get information about the machine whose name is denoted by the string n. The host-information record that is returned will contain the official name of the machine, a list of aliases (alternative names), and a non-empty list of IP addresses for this machine. On success, return a host-information record. An exception is raised when n does not appear in the database.

Examples:


let hi = host_info("google.com")
host_info_name(hi)
// google.com
host_info_aliases(hi)
// []
host_info_addresses(hi)
// [#u8[172, 217, 26, 206]]
      

Also see:

host_name
os_name


Core Module Index | Contents