]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add system test
authorMukund Sivaraman <muks@isc.org>
Wed, 2 May 2018 07:37:14 +0000 (13:07 +0530)
committerOndřej Surý <ondrej@sury.org>
Wed, 16 May 2018 06:15:36 +0000 (08:15 +0200)
bin/tests/system/dnssec/tests.sh

index d49ddc204093e5df1b355049072f2f8c51dafb2d..e30ba473c5d7b3f1449f9479cf613c0c80581453 100644 (file)
@@ -73,6 +73,18 @@ stripns () {
     awk '($4 == "NS") || ($4 == "RRSIG" && $5 == "NS") { next} { print }' $1
 }
 
+# Check that for a query against a validating resolver where the
+# authoritative zone is unsigned (insecure delegation), glue is returned
+# in the additional section
+echo_i "checking that additional glue is returned for unsigned delegation ($n)"
+ret=0
+$DIG +tcp +dnssec -p ${PORT} a.insecure.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
+grep "ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2" dig.out.ns4.test$n > /dev/null || ret=1
+grep "ns\.insecure\.example\..*A.10\.53\.0\.3" dig.out.ns4.test$n > /dev/null || ret=1
+n=`expr $n + 1`
+if [ $ret != 0 ]; then echo_i "failed"; fi
+status=`expr $status + $ret`
+
 # Check the example. domain
 
 echo_i "checking that zone transfer worked ($n)"