NLnetLabs / nsd

The NLnet Labs Name Server Daemon (NSD) is an authoritative, RFC compliant DNS nameserver.
https://nlnetlabs.nl/nsd
BSD 3-Clause "New" or "Revised" License
462 stars 105 forks source link

Large TXT record breaks AXFR #273

Closed jrlevine closed 1 year ago

jrlevine commented 1 year ago

This zone file has an almost 32K TXT record. It loads and serves fine, but AXFR fails when it gets to that record.

https://www.taugh.com/johnlevine.com.zone

Running the FreeBSD package of 4.6.1

wcawijngaards commented 1 year ago

This was a problem with NSD since a longer time, it is for records larger than 16K. The fix allows such a record as the first and only RR in a message in the stream of axfr, or ixfr, messages. This allows the transfer to complete successfully from nsd to the client.

The limit for 16K was used to keep the messages within the limits where name compression can be used, this makes transfers smaller. It is also used with the fix, when records fit within that limit.