method

gethostbyaddr

v1_9_3_392 - Show latest stable - Class: Socket
gethostbyaddr(p1, p2 = v2)
public

Obtains the host information for address.

p Socket.gethostbyaddr([221,186,184,68].pack("CCCC"))
#=> ["carbon.ruby-lang.org", [], 2, "\xDD\xBA\xB8D"]