method
gethostbyname
v2_4_6 -
Show latest stable
- Class:
TCPSocket
gethostbyname(p1)public
Lookups host information by hostname.
TCPSocket.gethostbyname("localhost") #=> ["localhost", ["hal"], 2, "127.0.0.1"]
gethostbyname(p1)Lookups host information by hostname.
TCPSocket.gethostbyname("localhost") #=> ["localhost", ["hal"], 2, "127.0.0.1"]