[Dnsmasq-discuss] Parsing limitation for big dns query responses in tcp

Philippe Lamhaut philippelamhaut at motorolasolutions.com
Wed Mar 20 14:59:07 GMT 2019


Hello,

I am using dnsmasq version 2.80 as dns client in an application. Testing
different size of dns query responses in tcp.

The biggest response that is properly parsed by the application has the
following specifications:
dns response size: 2049
tcp PDU size:         2051
Answers RRs:            30
Additional RRs:          31

When the response is bigger than that the ns_initparse() function fails
with "Message too long" error.

Appreciate any help to understand where is the bottleneck and if something
can be do to support bigger responses.

Thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190320/37b57b0c/attachment.html>


More information about the Dnsmasq-discuss mailing list