End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Resolv::IPv6#to_name
to_name
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/resolv.rb, line 2577
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.