method

gethostbyname

v2_1_10 - 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"]