Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Resolv::Hosts#getaddresses
(::String name) -> ::Array[::String]
getaddresses(name)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/resolv.rb, line 230
def getaddresses(name)
ret = []
each_address(name) {|address| ret << address}
return ret
end
Gets all IP addresses for name from the hosts file.