]> 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 11:10:30 +0000 (12:10 +0100)
Try to create a key for a zone, and then sign it, that has some special
characters in the name.

(cherry picked from commit 6a4f3ec242be67124bdc81785c8c78bf79c5066d)

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

index 02e8099ec95309d712e41e521b01c86f6d8aa5a8..8debcd2b510b328cc22ade915d82dff33bc000bf 100644 (file)
@@ -49,6 +49,15 @@ 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;
+       inline-signing yes;
+        dnssec-policy "default";
+};
+
 /* checkds: Zone with one KSK. */
 zone "checkds-ksk.kasp" {
        type primary;
index 05fde7d5886c2bab68058622bc9b5b0df8875e60..41cf3797346eae2d983638389abd7c1f4a10a274 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 58536b9fead4178df41d08682827d6ab0935112c..611c7177aafeafa34a66b1f96e9fe6099a4d6105 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
 #