End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Resolv#getname
getname(address)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/resolv.rb, line 127
def getname(address)
each_name(address) {|name| return name}
raise ResolvError.new("no name for #{address}")
end
Looks up the hostname of address.