Is there a limit to the number of SRV records that NSD will return, outside of the upper bound on packet size? I have a name that has ~18 SRV records, and I only see the same four, always. The packet size out on the wire is 260B, so I would expect we could cram some more in there, and I am not sure why we are only ever seeing the same five.
I wanted to ask before burning time on a source-code code-dive. I am using nsd 3.2.5.
That was just me quickly creating some entries on a test zone. Often caching servers limit the number of RR’s to whatever they feel like (4 seems common). That’s just my experience.
Nah. I am querying directly against the authority.
There is no limit imposed (apart from packet size and the 16-bit
counter for the number of RRs and so on). So, practically, 30 or so
to keep easily within UDP message sizes (you would need to test to see
the compression benefits and resulting message size), and with TCP
failover up to 64Kib of data (thousands of SRVs).
Coincidentally, to make the point that there is no limit on the size of an RRset (a TXT RR in this case) the SRV specification (RFC2782) has been available through the following query for quite some time now: