Mailing List Archive

[Bug 8225] askdns TCP fallback not working with UDP truncated TXT response
https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8225

--- Comment #4 from Sidney Markowitz <sidney@sidney.com> ---
(In reply to Mark Martinec from comment #3)
> Letting Net::DNS do an automatic fallback to TCP introduces inability
> to restrict elapsed time, and serializes DNS queries. We should be careful
> to decide when this is worthwhile.

The good thing about this patch is that it only hands off to Net::DNS::Resolver
when a UDP reply actually comes back truncated. All the code for parallelizing
and for bounding the time is still there and used, and no query that will have
worked anyway is done differently.

>
> Using a local DNS resolver which supports EDNS0 (UDP queries with a
> large buffer, e.g. 4 kB) greatly reduces a need for a TCP DNS query,

That matches what I see when testing. Using my usual configuration with a local
DNS resolver I cannot make this bug's failure happen. When run in a proper
environment like that, this patch never calls Net::DNS::Resolver.

--
You are receiving this mail because:
You are the assignee for the bug.