]> 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 10:43:08 +0000 (11:43 +0100)
commit3609dce81dabfab5f33541b0eafe3be0ef5a6c8c
tree59338fd3a20fb2eb48ade6b58da58222db175836
parentbb1c40e0a33d4288a66fcad81a76a5bfc813848c
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