]> 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>
Fri, 13 Jul 2018 20:33:11 +0000 (13:33 -0700)
(cherry picked from commit 73486c13f743407a50d5bbadde90c949a696506f)
(cherry picked from commit 584a1cff8b8c00310cee6b1735cb39664bf6899d)

bin/tests/system/chain/ns7/named.conf.in
bin/tests/system/chain/tests.sh

index 21f5a998c5fa42b3d2bb352ac871bea68d2afa3d..c314922a7c30f5bbe2e63985faca6d8bea6e2e5f 100644 (file)
@@ -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 {
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