]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check RRSIG covered type in negative cache entry
authorMark Andrews <marka@isc.org>
Fri, 15 Sep 2023 04:27:31 +0000 (14:27 +1000)
committerMark Andrews <marka@isc.org>
Mon, 18 Sep 2023 05:51:44 +0000 (15:51 +1000)
The covered type previously displayed as TYPE0 when it should
have reflected the records that was actually covered.

(cherry picked from commit 8ce359652a3e0c873520b319e9ee4d17e048d75c)

bin/tests/system/dnssec/tests.sh

index 72c116fbc7cdc4503d0828da5134f2a82a427ee7..fe4fc32ed5f73ce21bced2d5c163cd19983718ef 100644 (file)
@@ -377,6 +377,14 @@ if [ -x "${DELV}" ] ; then
    status=$((status+ret))
 fi
 
+echo_i "checking RRSIG covered type in negative cache entry ($n)"
+ret=0
+rndc_dumpdb ns4
+grep -F '; example. RRSIG NSEC ...' ns4/named_dump.db.test$n > /dev/null || ret=1
+n=$((n+1))
+test "$ret" -eq 0 || echo_i "failed"
+status=$((status+ret))
+
 echo_i "checking negative validation NXDOMAIN NSEC3 ($n)"
 ret=0
 dig_with_opts +noauth q.nsec3.example. \