allow-update { any; };
};
+zone "zonecut.ent.secure.example" {
+ type primary;
+ file "zonecut.ent.secure.example.db.signed";
+ allow-update { any; };
+};
+
zone "bogus.example" {
type primary;
file "bogus.example.db.signed";
badalg NS ns3.badalg
ns3.badalg A 10.53.0.3
+zonecut.ent NS ns3.zonecut.ent
+ns3.zonecut.ent A 10.53.0.3
+
private NS ns.private
ns.private A 10.53.0.2
"$SIGNER" -z -o "$zone" "$zonefile" >/dev/null
+# A zone that will be treated as insecure as the DEFAULT_ALGORITHM is
+# disabled for ent.secure.example.
+zone=zonecut.ent.secure.example.
+infile=zonecut.ent.secure.example.db.in
+zonefile=zonecut.ent.secure.example.db
+
+keyname=$("$KEYGEN" -q -a "$DEFAULT_ALGORITHM" -b "$DEFAULT_BITS" "$zone")
+
+cat "$infile" "$keyname.key" >"$zonefile"
+
+"$SIGNER" -z -o "$zone" "$zonefile" >/dev/null
+
#
zone=secure.example.
infile=secure.example.db.in
--- /dev/null
+; Copyright (C) Internet Systems Consortium, Inc. ("ISC")
+;
+; SPDX-License-Identifier: MPL-2.0
+;
+; This Source Code Form is subject to the terms of the Mozilla Public
+; License, v. 2.0. If a copy of the MPL was not distributed with this
+; file, you can obtain one at https://mozilla.org/MPL/2.0/.
+;
+; See the COPYRIGHT file distributed with this work for additional
+; information regarding copyright ownership.
+
+$TTL 300 ; 5 minutes
+@ IN SOA mname1. . (
+ 2000042407 ; serial
+ 20 ; refresh (20 seconds)
+ 20 ; retry (20 seconds)
+ 1814400 ; expire (3 weeks)
+ 3600 ; minimum (1 hour)
+ )
+ NS ns3
+ A 10.53.0.4
+ns3 A 10.53.0.3
disable-ds-digests "digest-alg-unsupported.example." { "SHA384"; "SHA-384"; };
disable-ds-digests "ds-unsupported.example." { "SHA256"; "SHA-256"; "SHA384"; "SHA-384"; };
disable-algorithms "badalg.secure.example." { ECDSAP256SHA256; };
+ disable-algorithms "z.secure.example." { ECDSAP256SHA256; };
+ disable-algorithms "ent.secure.example." { ECDSAP256SHA256; };
};
{% if not managed_key %}
res.extended_errors()[0].code == edns.EDECode.UNSUPPORTED_DNSKEY_ALGORITHM
)
+ # check that zone contents are still secure despite disable-algorithms
+ # on query name (name below zone name).
+ msg = isctest.query.create("z.secure.example", "A")
+ res = isctest.query.tcp(msg, "10.53.0.4")
+ isctest.check.rr_count_eq(res.answer, 2)
+ isctest.check.noerror(res)
+ isctest.check.adflag(res)
+
+ # check that zone contents are trated insecure (name above zone name).
+ msg = isctest.query.create("zonecut.ent.secure.example", "A")
+ res = isctest.query.tcp(msg, "10.53.0.4")
+ isctest.check.rr_count_eq(res.answer, 2)
+ isctest.check.noerror(res)
+ isctest.check.noadflag(res)
+ if hasattr(res, "extended_errors"):
+ assert (
+ res.extended_errors()[0].code == edns.EDECode.UNSUPPORTED_DNSKEY_ALGORITHM
+ )
+
# check that DS records are still treated as secure at the
# disable-algorithm name
msg = isctest.query.create("badalg.secure.example", "DS")