# File lib/net/dns/resolver.rb, line 910 def query(name,type=Net::DNS::A,cls=Net::DNS::IN) return send(name,type,cls) if name.class == IPAddr # If the name doesn't contain any dots then append the default domain. if name !~ /\./ and name !~ /:/ and @config[:defname] name += "." + @config[:domain] end @logger.debug "Query(#{name},#{Net::DNS::RR::Types.new(type)},#{Net::DNS::RR::Classes.new(cls)})" send(name,type,cls) end