method

gethostbyname

v1_9_3_125 - Show latest stable - Class: Socket
gethostbyname(p1)
public

Obtains the host information for hostname.

p Socket.gethostbyname("hal") #=> ["localhost", ["hal"], 2, "\x7F\x00\x00\x01"]