]> git.ipfire.org Git - thirdparty/bind9.git/commit
[9.20] chg: usr: Fall back to TCP on a UDP response with a mismatched query id
authorOndřej Surý <ondrej@isc.org>
Fri, 15 May 2026 06:49:26 +0000 (08:49 +0200)
committerOndřej Surý <ondrej@isc.org>
Fri, 15 May 2026 06:49:26 +0000 (08:49 +0200)
commitb2367aaea2be13c4e2aff1c5240381140bf64d6f
tree33283371e3febfa5ad039412cf899205e7eeee3d
parentb514e663eb02fada08fdac82c6dbae7abb18cca6
parent38dd0e0ccc638180f4bec78a8d1732076b40d461
[9.20] chg: usr: Fall back to TCP on a UDP response with a mismatched query id

BIND used to wait silently for the correct DNS message id on a UDP fetch
even after receiving a response from the expected server with the wrong
id, leaving room for off-path spoofing attempts to keep guessing within
that window.  The resolver now retries the fetch over TCP on the first
such response, and a new MismatchTCP statistics counter tracks how
often the fallback fires.

Closes #5449

Backport of MR !12023

Merge branch 'backport-5449-immediate-tcp-fallback-on-id-mismatch-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!12025