]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add consistency checks to responses with NSEC3
authorPetr Špaček <pspacek@isc.org>
Fri, 6 Jun 2025 15:10:42 +0000 (17:10 +0200)
committerPetr Špaček <pspacek@isc.org>
Tue, 29 Jul 2025 08:00:46 +0000 (10:00 +0200)
commitcfaf5c997f73e1d91735d6c87a2a21cab391eabd
tree49b42716379d169a7dc48a2be0526a87ade67f57
parent9ca2077274908d86599e0161cf2c0ccc140b224f
Add consistency checks to responses with NSEC3

Basic sanity checks - limited to responses from a single zone:
- NSEC3 type cannot be present in type bitmap:
  By definition, the type bitmap describes state of the unhashed name
  but NSEC3 RR is present at a different owner name. RFC 7129 section 5
- NSEC3 owner names cannot be duplicated:
  Unless the response crosses zone boundary, parent zone has insecure
  delegation for child, but child is signed ... don't do that.
- All parameters are consistent across all RRs present in answer:
  RFC 5155 section 7.2, last paragraph - at least when we don't cross
  zone boundary.
bin/tests/system/dnssec/tests_nsec3.py