Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Resolv::Hosts#each_address
each_address(name, &proc)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/resolv.rb, line 237
def each_address(name, &proc)
lazy_initialize
@name2addr[name]&.each(&proc)
end
Iterates over all IP addresses for name retrieved from the hosts file.