instance method
Resolv::IPv6#to_name
() -> ::Resolv::DNS::Name
to_name
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/resolv.rb, line 3158
def to_name
return DNS::Name.new(
@address.unpack("H32")[0].split(//).reverse + ['ip6', 'arpa'])
end
Turns this IPv6 address into a Resolv::DNS::Name.