Method: Net::DNS::Resolver#port

Defined in:
lib/net/dns/resolver.rb

#portObject

Get the port number to which the resolver sends queries.

puts "Sending queries to port #{res.port}"


404
405
406
# File 'lib/net/dns/resolver.rb', line 404

def port
  @config[:port]
end