Socket.gethostbyname(hostname) => [official_hostname, alias_hostnames, address_family, *address_list]
Class Public methods
Obtains the host information for hostname.
1 | p Socket.gethostbyname( "hal" ) #=> ["localhost", ["hal"], 2, "\x7F\x00\x00\x01"] |
Please login to continue.