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

Philippe Lamhaut philippelamhaut at motorolasolutions.com
Tue Mar 26 08:46:38 GMT 2019


Thank you Simon for your answer. The issue was not in dnsmasq. It was due
to definition of dns response length in our application.
Best regards,
 Philippe

On Fri, Mar 22, 2019 at 6:00 PM Simon Kelley <simon at thekelleys.org.uk>
wrote:

> Could you give more details on exactly how you're testing this?
> Whereever that error is coming from, it's not from dnsmasq, which
> doesn't use the resolver library at all.
>
>
> Simon.
>
>
> On 20/03/2019 14:59, Philippe Lamhaut wrote:
> > 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,
> >
> >
> > _______________________________________________
> > Dnsmasq-discuss mailing list
> > Dnsmasq-discuss at lists.thekelleys.org.uk
> >
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.thekelleys.org.uk_mailman_listinfo_dnsmasq-2Ddiscuss&d=DwIGaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=_nFH9Q9g4jERTGwr68OG8ZzBoI863OUpPFuNw1UT93xzSg2zhwgFsJwBbTHP-rG5&m=LVEx3-JhWMvwPzsai6uPwfwj2JQ4sph8ZPN25vCiCsw&s=6LGOXuIQKESu_Byu4PcSL_HqeaPUCsbVcKY3tvSQIa4&e=
> >
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
>
> https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.thekelleys.org.uk_mailman_listinfo_dnsmasq-2Ddiscuss&d=DwIGaQ&c=q3cDpHe1hF8lXU5EFjNM_A&r=_nFH9Q9g4jERTGwr68OG8ZzBoI863OUpPFuNw1UT93xzSg2zhwgFsJwBbTHP-rG5&m=LVEx3-JhWMvwPzsai6uPwfwj2JQ4sph8ZPN25vCiCsw&s=6LGOXuIQKESu_Byu4PcSL_HqeaPUCsbVcKY3tvSQIa4&e=
>


-- 
Thanks,
Philippe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20190326/8af2608f/attachment.html>


More information about the Dnsmasq-discuss mailing list