End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Resolv#getaddress
getaddress(name)
lib/resolv.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/resolv.rb, line 92
def getaddress(name)
each_address(name) {|address| return address}
raise ResolvError.new("no address for #{name}")
end
Looks up the first IP address for name.
See also
.getaddress
#each_name
#getaddresses
#each_address
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0