On Apr 19, 2026, at 21:53, Cathy Zhang <[email protected]> wrote:
(Clipping for brevity…)

> It seems that querying all available authoritative servers can mitigate the 
> impact of forged responses that arrive earlier, unless queries sent to every 
> authoritative server are all preempted by forged replies.

Handling anomalies is an art.  An art because you can’t anticipate the problem 
you need to solve.  The design of the protocol determines the normal or common 
case.  In the normal case, knowing minimizing traffic load is a good thing 
(locally and globally), it’s good to pick one target for the query and see what 
happens.

If the adversary is going to respond with forgeries to queries at a high 
volume, it’s essentially a DDoS situation.  If nothing gets through, nothing 
matters, the querier is not going to function.  In this case, additional 
queries is pushing in the wrong direction.

If the adversary is triggering the queries - by asking the server for the data 
knowing the server will then query onward, trying on source after another in a 
staggered approach may help.  In this scenario, the adversary can know the IP 
addresses of the targets (via the NS set for the data), the IP address of the 
server itself, as well as guess the message id (and port number) - which is 
enough to forge a message that will pass the low-level filters back in.  In 
this case, the hope will be that a valid response does follow the forged.

If the problem is also one of network instability (possibly due to adversary 
activity, possibly other reasons), sending queries in parallel (to different 
targets) may help.  But this is a different failure scenario.

If the adversary “controls the line” from the server to all of it’s targets, 
you can’t beat it in-band.  (Example, hotel networks - at least - used to 
intercept all traffic until the account was accepted.)

The morale - how you react to anything other than the expected, by design case, 
depends on the failure scenario you experience.  And the experience may change 
over time.

> Ignoring such invalid responses and continuing to wait for valid ones until 
> timeout appears to be a better design. It seems that, except for replay 
> attacks involving negative responses, missing or invalid signatures would not 
> prevent the resolver from processing correct responses.
> 
> I would greatly appreciate your insight on whether DNS implementations such 
> as BIND, Unbound, and PowerDNS actually adopt this kind of behavior.

I don’t know, and if the implementers what to speak up they can.  (Knot 
resolver, another open source validating recursor, as well.). But I will build 
on my words above with this.

Pre-2004, I recall a discussion with an implementor of (the only code at the 
time) BIND.  He didn’t want to wait for the timeout then, but didn’t give a 
specific reason.  But a few things I knew so I didn’t push more.  
Multi-threading and event management in software of the time was difficult and 
prone to bugs (within the OS).  There was also no evidence of cache poisoning 
“in the wild”, it was mostly a theoretical vulnerability.  Given that one 
designs fallbacks based on what one sees, if a response was invalid, one would 
just move on to the next potential source for the data.  It made pragmatic 
sense then.

I would bet that discussion would have gone differently in recent years.  
Threading has become a lot easier, computers are better at handling interrupts, 
etc.

For full disclosure, the I wrote the first validator, in the late 1990’s, as 
part of the development of an earlier version of DNSSEC.  RFC 2535 maybe.  I’ve 
not written a general purpose validator, my experience is solely on the 
“concept” code.
_______________________________________________
DNSOP mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to