]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't allow DNSSEC records in the raw zone
authorMatthijs Mekking <matthijs@isc.org>
Mon, 10 Oct 2022 12:14:43 +0000 (14:14 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 3 Nov 2022 13:44:35 +0000 (14:44 +0100)
commit949768b252f3cb8a64425f15c9819b24202bb553
tree9e0de34e9c166f8065e597353bdb8bddde52eab1
parent9533b68089c21a355ff5825dda41d8c8b8064281
Don't allow DNSSEC records in the raw zone

There was an exception for dnssec-policy that allowed DNSSEC in the
unsigned version of the zone. This however causes a crash if the
zone switches from dynamic to inline-signing in the case of NSEC3,
because we are now trying to add an NSEC3 record to a non-NSEC3 node.
This is because BIND expects none of the records in the unsigned
version of the zone to be NSEC3.

Remove the exception for dnssec-policy when copying non DNSSEC
records, but do allow for DNSKEY as this may be a published DNSKEY
from a different provider.

(cherry picked from commit 332b98ae49948e26a90f1d6e0a625f6eec568777)
lib/dns/zone.c