Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Resolv::IPv4#to_name
to_name
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/resolv.rb, line 2888
def to_name
return DNS::Name.create(
'%d.%d.%d.%d.in-addr.arpa.' % @address.unpack('CCCC').reverse)
end
Turns this IPv4 address into a Resolv::DNS::Name.