]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
report initial RRSIG expiry field values
authorMark Andrews <marka@isc.org>
Fri, 17 Aug 2018 00:58:44 +0000 (10:58 +1000)
committerMark Andrews <marka@isc.org>
Fri, 31 Aug 2018 03:07:49 +0000 (13:07 +1000)
(cherry picked from commit 8e5abc6cdff27c2719e37965ed088a8be6f0e666)

bin/tests/system/autosign/tests.sh

index 40bb97b3a3448308801139709e8b27d0f7839fb1..6ea42cbb4ae4691d96dfa6fb26ab43b3d56505e3 100755 (executable)
@@ -78,7 +78,7 @@ do
        done
        for z in bar. example. inacksk2.example. inacksk3.example \
                 inaczsk2.example. inaczsk3.example
-       do 
+       do
                $DIG $DIGOPTS $z @10.53.0.3 nsec > dig.out.ns3.test$n || ret=1
                grep "NS SOA" dig.out.ns3.test$n > /dev/null || ret=1
        done
@@ -91,6 +91,23 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo_i "done"; fi
 status=`expr $status + $ret`
 
+echo_i "Initial counts of RRSIG expiry fields values for auto signed zones"
+for z in .
+do
+       echo_i zone $z
+       $DIG $DIGOPTS $z @10.53.0.1 axfr | awk '$4 == "RRSIG" {print $9}' | sort | uniq -c | cat_i
+done
+for z in bar. example. private.secure.example.
+do
+       echo_i zone $z
+       $DIG $DIGOPTS $z @10.53.0.2 axfr | awk '$4 == "RRSIG" {print $9}' | sort | uniq -c | cat_i
+done
+for z in inacksk2.example. inacksk3.example inaczsk2.example. inaczsk3.example
+do
+       echo_i zone $z
+       $DIG $DIGOPTS $z @10.53.0.3 axfr | awk '$4 == "RRSIG" {print $9}' | sort | uniq -c | cat_i
+done
+
 #
 # Check that DNSKEY is initially signed with a KSK and not a ZSK.
 #
@@ -1147,7 +1164,7 @@ if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
 # this confirms that key events are never scheduled more than
-# 'dnssec-loadkeys-interval' minutes in the future, and that the 
+# 'dnssec-loadkeys-interval' minutes in the future, and that the
 # event scheduled is within 10 seconds of expected interval.
 check_interval () {
         awk '/next key event/ {print $2 ":" $9}' $1/named.run |