From: Mark Andrews Date: Thu, 29 Aug 2024 00:09:34 +0000 (+1000) Subject: Check that 'provide-zoneversion no;' works X-Git-Tag: v9.21.7~34^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb77a89dfd655e12762172bf2acaa48af15d0d0f;p=thirdparty%2Fbind9.git Check that 'provide-zoneversion no;' works --- diff --git a/bin/tests/system/digdelv/ns2/named.conf.in b/bin/tests/system/digdelv/ns2/named.conf.in index c9fdcd79ab7..47b0449ffb3 100644 --- a/bin/tests/system/digdelv/ns2/named.conf.in +++ b/bin/tests/system/digdelv/ns2/named.conf.in @@ -36,4 +36,5 @@ zone "example" { zone "example.tld" { type primary; file "example.tld.db"; + provide-zoneversion no; }; diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index 6122fa1132c..60f5e1f022a 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -810,6 +810,15 @@ if [ -x "$DIG" ]; then if [ $ret -ne 0 ]; then echo_i "failed"; fi status=$((status + ret)) + n=$((n + 1)) + echo_i "checking dig +zoneversion to a authoritative server with zoneversion disabled ($n)" + ret=0 + dig_with_opts @10.53.0.2 +zoneversion a.example.tld >dig.out.test$n 2>&1 || ret=1 + grep "status: NOERROR" dig.out.test$n >/dev/null || ret=1 + grep "; ZONEVERSION:" dig.out.test$n >/dev/null && ret=1 + if [ $ret -ne 0 ]; then echo_i "failed"; fi + status=$((status + ret)) + if [ $HAS_PYYAML -ne 0 ]; then n=$((n + 1)) echo_i "checking dig +yaml +zoneversion to a authoritative server ($n)"