instance method
Resolv::Hosts#getname
(::String address) -> ::String
getname(address)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/lib/resolv.rb, line 250
def getname(address)
each_name(address) {|name| return name}
raise ResolvError.new("#{@filename} has no address: #{address}")
end
Gets the hostname of address from the hosts file.