]> git.ipfire.org Git - thirdparty/bind9.git/commit
fix: usr: Fix deferred validation of unsigned DS and DNSKEY records
authorMark Andrews <marka@isc.org>
Sun, 16 Feb 2025 23:36:25 +0000 (23:36 +0000)
committerMark Andrews <marka@isc.org>
Sun, 16 Feb 2025 23:36:25 +0000 (23:36 +0000)
commitebf1606f3822f004d443ba5e9c8a5300d12e326e
treea03b9c1d2662c4acdb56711f197e84618e775734
parentb694acbe454a6f0f5a2418765bc2806d0d06ba28
parent04b1484ed8308baede372e642d1ed7c05c523a94
fix: usr: Fix deferred validation of unsigned DS and DNSKEY records

When processing a query with the "checking disabled" bit set (CD=1), `named` stores the unvalidated result in the cache, marked "pending". When the same query is sent with CD=0, the cached data is validated, and either accepted as an answer, or ejected from the cache as invalid. This deferred validation was not attempted for DS and DNSKEY records if they had no cached signatures, causing spurious validation failures. We now complete the deferred validation in this scenario.

Also, if deferred validation fails, we now re-query the data to find out whether the zone has been corrected since the invalid data was cached.

Closes #5066

Merge branch '5066-fix-strip-dnssec-rrsigs' into 'main'

See merge request isc-projects/bind9!10104