From: Evan Hunt Date: Fri, 6 Jul 2018 01:57:48 +0000 (-0700) Subject: test case X-Git-Tag: v9.11.5rc1~51^2~3 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=02e8b3f8dcfdb9877cb053af7ca34809e8543420;p=thirdparty%2Fbind9.git test case (cherry picked from commit 73486c13f743407a50d5bbadde90c949a696506f) (cherry picked from commit 584a1cff8b8c00310cee6b1735cb39664bf6899d) --- diff --git a/bin/tests/system/chain/ns7/named.conf.in b/bin/tests/system/chain/ns7/named.conf.in index 21f5a998c5f..c314922a7c3 100644 --- a/bin/tests/system/chain/ns7/named.conf.in +++ b/bin/tests/system/chain/ns7/named.conf.in @@ -20,6 +20,12 @@ options { listen-on-v6 { fd92:7065:b8e:ffff::7; }; recursion yes; allow-recursion { any; }; + dnssec-validation yes; + deny-answer-aliases { + "example"; + } except-from { + "example"; + }; }; key rndc_key { diff --git a/bin/tests/system/chain/tests.sh b/bin/tests/system/chain/tests.sh index fa422439016..e7ad91ea9f8 100644 --- a/bin/tests/system/chain/tests.sh +++ b/bin/tests/system/chain/tests.sh @@ -248,5 +248,22 @@ $RNDCCMD 10.53.0.7 flush 2>&1 | sed 's/^/ns7 /' | cat_i if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` +n=`expr $n + 1` +echo_i "checking explicit DNAME query ($n)" +ret=0 +$DIG $DIGOPTS @10.53.0.7 dname short-dname.example > dig.out.7.$n 2>&1 +grep 'status: NOERROR' dig.out.7.$n > /dev/null 2>&1 || ret=1 +if [ $ret != 0 ]; then echo_i "failed"; fi +status=`expr $status + $ret` + +n=`expr $n + 1` +echo_i "checking DNAME via ANY query ($n)" +ret=0 +$RNDCCMD 10.53.0.7 flush 2>&1 | sed 's/^/ns7 /' | cat_i +$DIG $DIGOPTS @10.53.0.7 any short-dname.example > dig.out.7.$n 2>&1 +grep 'status: NOERROR' dig.out.7.$n > /dev/null 2>&1 || ret=1 +if [ $ret != 0 ]; then echo_i "failed"; fi +status=`expr $status + $ret` + echo_i "exit status: $status" [ $status -eq 0 ] || exit 1