TCPSocket.gethostbyname(hostname) => [official_hostname, alias_hostnames, address_family, *address_list]
Class Public methods
Lookups host information by hostname.
TCPSocket.gethostbyname("localhost") #=> ["localhost", ["hal"], 2, "127.0.0.1"]
Please login to continue.