reverse()
public
Returns a string for DNS reverse lookup.
It returns a string in RFC3172 form for an IPv6 address.
Show source
def reverse
case @family
when Socket::AF_INET
return _reverse + ".in-addr.arpa"
when Socket::AF_INET6
return ip6_arpa
else
raise AddressFamilyError, "unsupported address family"
end
end