vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/zone_transfer.rb
#  The nameserver to use for the zone transfer - defaults to system config
The nameserver to use for the zone transfer - defaults to system config
The nameserver to use for the zone transfer - defaults to system config
def receive_message(socket) 
      buf = tcp_read(socket, 2)
      answersize = buf.unpack('n')[0]
      raise ResolvError.new("Server did not send a valid answer") if answersize.nil?
      buf = tcp_read(socket, answersize)
      msg = Message.decode(buf)
      if (@tsig)
        if !@tsig.verify_envelope(msg, buf)
          Dnsruby.log.error("Bad signature on zone transfer - closing connection")
          raise ResolvError.new("Bad signature on zone transfer")
        end
      end
      return msg
    end
def receive_message ( socket ) buf = tcp_read ( socket , 2 ) answersize = buf . unpack ( 'n' ) [ 0 ] raise ResolvError . new ( "Server did not send a valid answer" ) if answersize . nil? buf = tcp_read ( socket , answersize ) msg = Message . decode ( buf ) if ( @tsig ) if ! @tsig . verify_envelope ( msg , buf ) Dnsruby . log . error ( "Bad signature on zone transfer - closing connection" ) raise ResolvError . new ( "Bad signature on zone transfer" ) end end return msg end
The nameserver to use for the zone transfer - defaults to system config
The nameserver to use for the zone transfer - defaults to system config
#:nodoc: all #  Some servers (e.g. dnscache) apparently hang up on some connections. #  Thanks to Matt Palmer for the fix.
socket
<not_specific>