vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/resolver.rb
#  This method takes a Message (supplied by the client), and sends it to
#  the configured nameservers. No changes are made to the Message before it
#  is sent (TSIG signatures will be applied if configured on the Resolver).
#  Retries are handled as the Resolver is configured to do.
#  Incoming responses to the query are not cached or validated (although TCP
#  fallback will be performed if the TC bit is set and the (Single)Resolver has
#  ignore_truncation set to false).
#  Note that the Message is left untouched - this means that no OPT records are
#  added, even if the UDP transport for the server is specified at more than 512
#  bytes. If it is desired to use EDNS for this packet, then you should call
#  the Dnsruby::PacketSender#prepare_for_dnssec(msg), or
#  Dnsruby::PacketSender#add_opt_rr(msg)
#  The return value from this method is the [response, error] tuple. Either of
#  these values may be nil - it is up to the client to check.
#
#  example :
#
#    require 'dnsruby'
#    include Dnsruby
#    res = Dnsruby::Resolver.new
#    response, error = res.send_plain_message(Message.new('example.com', Types.MX))
#    if error
#      print "Error returned : #{error}\n"
#    else
#      process_response(response)
#    end
This method takes a Message (supplied by the client), and sends it to
the configured nameservers. No changes are made to the Message before it
is sent (TSIG signatures will be applied if configured on the Resolver).
Retries are handled as the Resolver is configured to do.
Incoming responses to the query are not cached or validated (although TCP
fallback will be performed if the TC bit is set and the (Single)Resolver has
ignore_truncation set to false).
Note that the Message is left untouched - this means that no OPT records are
added, even if the UDP transport for the server is specified at more than 512
bytes. If it is desired to use EDNS for this packet, then you should call
the Dnsruby::PacketSender#prepare_for_dnssec(msg), or
Dnsruby::PacketSender#add_opt_rr(msg)
The return value from this method is the [response, error] tuple. Either of
these values may be nil - it is up to the client to check.

example .


This method takes a Message ( supplied by the client ) and sends it to the configured nameservers . No changes are made to the Message before it is sent ( TSIG signatures will be applied if configured on the Resolver ) . Retries are handled as the Resolver is configured to do . Incoming responses to the query are not cached or validated ( although TCP fallback will be performed if the TC bit is set and the ( Single ) Resolver has ignore_truncation set to false ) . Note that the Message is left untouched - this means that no OPT records are added even if the UDP transport for the server is specified at more than 512 bytes . If it is desired to use EDNS for this packet then you should call the Dnsruby :: PacketSender#prepare_for_dnssec ( msg ) or Dnsruby :: PacketSender#add_opt_rr ( msg ) The return value from this method is the [ response error ] tuple . Either of these values may be nil - it is up to the client to check . example .
def send_plain_message(message)
      Dnsruby::TheLog.debug('Resolver : send_plain_message')
      message.do_caching = false
      message.do_validation = false
      message.send_raw = true
      q = Queue.new
      send_async(message, q)
      _id, result, error = q.pop
      error.response = result if !error.nil? && error.is_a?(ResolvError)
      [result, error]
    end
def send_plain_message ( message ) Dnsruby :: TheLog . debug ( 'Resolver : send_plain_message' ) message . do_caching = false message . do_validation = false message . send_raw = true q = Queue . new send_async ( message , q ) _id , result , error = q . pop error . response = result if ! error . nil? && error . is_a? ( ResolvError ) [ result , error ] end
This method takes a Message (supplied by the client), and sends it to
the configured nameservers.
This method takes a Message ( supplied by the client ) and sends it to the configured nameservers .
message
<not_specific>