gethostbyname(p1) public

Lookups host information by hostname.

TCPSocket.gethostbyname("localhost")
#=> ["localhost", ["hal"], 2, "127.0.0.1"]
Show source
Register or log in to add new notes.