Check conf dnssec-policy inline-signing secondary

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.
This commit is contained in:
Matthijs Mekking 2026-05-18 15:13:38 +02:00
parent c62cff5aef
commit 43bbfbeb3c
2 changed files with 10 additions and 0 deletions

View file

@ -0,0 +1,7 @@
remote-servers "stealthPrimaries" {127.0.0.1;};
zone "example.net" {
type secondary;
dnssec-policy default;
primaries { stealthPrimaries; };
};

View 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))