]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check conf dnssec-policy inline-signing secondary
authorMatthijs Mekking <matthijs@isc.org>
Mon, 18 May 2026 13:13:38 +0000 (15:13 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Wed, 27 May 2026 09:45:11 +0000 (09:45 +0000)
Add a variant of checking configuration where inline-signing is
enabled on the secondary, requiring the 'file' entry. This time,
inline-signing is implicitly enabled via dnssec-policy.

bin/tests/system/checkconf/inline-inherit.conf [new file with mode: 0644]
bin/tests/system/checkconf/tests.sh

diff --git a/bin/tests/system/checkconf/inline-inherit.conf b/bin/tests/system/checkconf/inline-inherit.conf
new file mode 100644 (file)
index 0000000..8cc7da6
--- /dev/null
@@ -0,0 +1,7 @@
+remote-servers "stealthPrimaries" {127.0.0.1;};
+zone "example.net" {
+       type secondary;
+       dnssec-policy default;
+       primaries { stealthPrimaries; };
+};
+
index 330da510e3c84aadb7cbc31ae65eade53f67f732..539afaf56a6e1214a6b50e6960acbf0ecb6c079b 100644 (file)
@@ -277,6 +277,9 @@ l=$(grep "missing 'file' entry" <checkconf.out$n.2 | wc -l)
 $CHECKCONF inline-bad.conf >checkconf.out$n.3 2>&1 && ret=1
 l=$(grep "missing 'file' entry" <checkconf.out$n.3 | wc -l)
 [ $l -eq 1 ] || ret=1
+$CHECKCONF inline-inherit.conf >checkconf.out$n.3 2>&1 && ret=1
+l=$(grep "missing 'file' entry" <checkconf.out$n.3 | wc -l)
+[ $l -eq 1 ] || ret=1
 if [ $ret -ne 0 ]; then echo_i "failed"; fi
 status=$((status + ret))