ruby-dns / net-dns

Net::DNS is a DNS library written in Ruby.
http://net-dns.rubyforge.org
Other
165 stars 42 forks source link

Multi message responses truncated #67

Open mattburchett opened 9 years ago

mattburchett commented 9 years ago

Hi,

I'm attempting to do an AXFR whose response is quite large (about 1500 RR). When I check this via 'dig', I see this being split between two messages.

;; Query time: 28 msec ;; SERVER: redacting the server info ;; WHEN: Fri Sep 11 22:51:27 CDT 2015 ;; XFR size: 1460 records (messages 2, bytes 45429)

On net-dns, it appears that the it is only gathering data from the first message as the records stop listing alphabetically (on a range of A-Z, they stop at about W, which is where (I assume) the second message starts).

I'm unable to determine if this is intended, but I was able to confirm that the dnsruby gem does return all the records, however, I'm having trouble parsing the TXT records using dnsruby, and net-dns was parsing them perfectly.

It also looked like this may have been noticed on the fork of net-dns as well: https://github.com/mordocai/net-dns/issues/35

Cheers.

dmarkley-shop commented 9 years ago

I can confirm this issue on my system too.

dig axfr returns: ;; XFR size: 5435 records (messages 6, bytes 152693)

gem axfr returns: ;; ANSWER SECTION (926 records):