bind9/lib/ns
Matthijs Mekking 39c0c5022d Wait with NSEC3 during a DNSSEC policy change
When doing a dnssec-policy reconfiguration from a zone with NSEC only
keys to a zone that uses NSEC3, figure out to wait with building the
NSEC3 chain.

Previously, BIND 9 would attempt to sign such a zone, but failed to
do so because the NSEC3 chain conflicted with existing DNSKEY records
in the zone that were not compatible with NSEC3.

There exists logic for detecting such a case in the functions
dnskey_sane() (in lib/dns/zone.c) and check_dnssec() (in
lib/ns/update.c). Both functions look very similar so refactor them
to use the same code and call the new function (called
dns_zone_check_dnskey_nsec3()).

Also update the dns_nsec_nseconly() function to take an additional
parameter 'diff' that, if provided, will be checked whether an
offending NSEC only DNSKEY will be deleted from the zone. If so,
this key will not be considered when checking the zone for NSEC only
DNSKEYs. This is needed to allow a transition from an NSEC zone with
NSEC only DNSKEYs to an NSEC3 zone.

(cherry picked from commit 09a81dc84ce0fee37442f03cdbd63c2398215376)
2022-08-22 19:21:39 +02:00
..
include Store HTTP quota size inside a listenlist instead of the quota 2022-06-28 16:37:31 +03:00
client.c Increase the BUFSIZ-long buffers 2022-07-15 21:16:51 +02:00
hooks.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
interfacemgr.c Update the set of HTTP endpoints on reconfiguration 2022-06-28 16:37:31 +03:00
listenlist.c Store HTTP quota size inside a listenlist instead of the quota 2022-06-28 16:37:31 +03:00
log.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
Makefile.am Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
notify.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
query.c Don't enable serve-stale on duplicate queries 2022-08-09 09:36:11 +02:00
server.c Store HTTP quota size inside a listenlist instead of the quota 2022-06-28 16:37:31 +03:00
sortlist.c Add isc_rwlock around dns_aclenv .localhost and .localnets member 2022-04-26 14:21:57 +02:00
stats.c Update the copyright information in all files in the repository 2022-01-11 09:05:02 +01:00
tests Move all the unit tests to /tests/<libname>/ 2022-05-31 12:06:00 +02:00
update.c Wait with NSEC3 during a DNSSEC policy change 2022-08-22 19:21:39 +02:00
xfrout.c log the reason for falling back to AXFR from IXFR at level info 2022-07-12 16:26:13 -07:00