Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Resolv::IPv6#to_name
to_name
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/resolv.rb, line 3054
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.