]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't leak the original QTYPE to parent zone
authorMark Andrews <marka@isc.org>
Thu, 18 Jul 2024 03:27:23 +0000 (13:27 +1000)
committerMark Andrews <marka@isc.org>
Fri, 14 Mar 2025 01:01:26 +0000 (01:01 +0000)
commitde519cd1c90786f6c3672d6f14b3ea4fdde8723f
tree8c3af024efd7220902b234c1bd24cf4b5c1b78cf
parent496f7963cdb1d15ff9fb1dece795534b25f33530
Don't leak the original QTYPE to parent zone

When performing QNAME minimization, named now sends an NS
query for the original QNAME, to prevent the parent zone from
receiving the QTYPE.

For example, when looking up example.com/A, we now send NS queries
for both com and example.com before sending the A query to the
servers for example.com.  Previously, an A query for example.com
would have been sent to the servers for com.

Several system tests needed to be adjusted for the new query pattern:

- Some queries in the serve-stale test were sent to the wrong server.
- The synthfromdnssec test could fail due to timing issues; this
  has been addressed by adding a 1-second delay.
- The cookie test could fail due to the a change in the count of
  TSIG records received in the "check that missing COOKIE with a
  valid TSIG signed response does not trigger TCP fallback" test case.
- The GL #4652 regression test case in the chain system test depends
  on a particular query order, which no longer occurs when QNAME
  minimization is active. We now disable qname-minimization
  for that test.
12 files changed:
bin/tests/system/chain/ns7/named.conf.in
bin/tests/system/cookie/tests.sh
bin/tests/system/dnssec/tests.sh
bin/tests/system/mirror/tests.sh
bin/tests/system/qmin/ans4/ans.py
bin/tests/system/qmin/tests.sh
bin/tests/system/resolver/tests.sh
bin/tests/system/rpzextra/tests_rpzextra.py
bin/tests/system/serve-stale/tests.sh
bin/tests/system/serve-stale/tests_sh_serve_stale.py
bin/tests/system/synthfromdnssec/tests.sh
lib/dns/resolver.c