]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add a DNSSEC policy test case for a special zone
authorMatthijs Mekking <matthijs@isc.org>
Fri, 17 Nov 2023 15:00:23 +0000 (16:00 +0100)
committerMatthijs Mekking <matthijs@isc.org>
Mon, 20 Nov 2023 07:31:39 +0000 (08:31 +0100)
Try to create a key for a zone, and then sign it, that has some special
characters in the name.

bin/tests/system/kasp/ns3/named-fips.conf.in
bin/tests/system/kasp/ns3/setup.sh
bin/tests/system/kasp/tests.sh

index cef81f94d5ac2d151b92f13c249ed78a5e898999..d67aa5f38a575c2c81cd5023b21b9193aabead0d 100644 (file)
@@ -48,6 +48,14 @@ zone "default.kasp" {
        dnssec-policy "default";
 };
 
+/* A zone with special characters. */
+zone "i-am.\":\;?&[]\@!\$*+,|=\.\(\)special.kasp." {
+        type primary;
+        file "i-am.special.kasp.db";
+        check-names ignore;
+        dnssec-policy "default";
+};
+
 /* checkds: Zone with one KSK. */
 zone "checkds-ksk.kasp" {
        type primary;
index 63aeb36fa58d99fc800c83359b32f31398c3dd5d..55fcd1b5e106eeb955b26959cd944d64a486bb91 100644 (file)
@@ -51,6 +51,13 @@ for zn in default dnssec-keygen some-keys legacy-keys pregenerated \
   cp template.db.in "$zonefile"
 done
 
+#
+# Setup special zone
+#
+zone="i-am.\":\;?&[]\@!\$*+,|=\.\(\)special.kasp."
+echo_i "setting up zone: $zone"
+cp template.db.in "i-am.special.kasp.db"
+
 #
 # Set up RSASHA1 based zones
 #
index 6ac891c0d22e69812189379eef7c506ee4fe8ff7..645d77b8dd92eaa4c68713b2f3bdbca0ad4e409e 100644 (file)
@@ -393,6 +393,16 @@ check_apex
 check_subdomain
 dnssec_verify
 
+#
+# A zone with special characters.
+#
+set_zone "i-am.\":\;?&[]\@!\$*+,|=\.\(\)special.kasp."
+set_policy "default" "1" "3600"
+set_server "ns3" "10.53.0.3"
+# It is non-trivial to adapt the tests to deal with all possible different
+# escaping characters, so we will just try to verify the zone.
+dnssec_verify
+
 #
 # Zone: dynamic.kasp
 #