]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
test case
authorEvan Hunt <each@isc.org>
Fri, 6 Jul 2018 01:57:48 +0000 (18:57 -0700)
committerEvan Hunt <each@isc.org>
Wed, 8 Aug 2018 21:33:19 +0000 (14:33 -0700)
bin/tests/system/chain/ns7/named.conf.in
bin/tests/system/chain/tests.sh

index defabb0a69ff0a63fe09e300de6e8e5b782f7e87..c314922a7c30f5bbe2e63985faca6d8bea6e2e5f 100644 (file)
@@ -21,6 +21,11 @@ options {
        recursion yes;
        allow-recursion { any; };
        dnssec-validation yes;
+       deny-answer-aliases {
+               "example";
+       } except-from {
+               "example";
+       };
 };
 
 key rndc_key {
index fa42243901664e384a12288850c1a6c8ac77dd88..e7ad91ea9f85256fabca4bc340bf0727e957e339 100644 (file)
@@ -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