Commit b4b0464f29 for bind
commit b4b0464f291062f2a3b10228b424f34ff61e4c27
Author: Nicki Křížek <nicki@isc.org>
Date: Thu Oct 22 15:55:59 2026 +0000
Restore the existing DNSKEY RRset in the ttl4.example zone
Since c756b8a505 the ttl4.example zone file no longer carried its
DNSKEYs, so the "existing RRset" check got its keys added fresh like
ttl1-3. With the RRset back, named has to rewrite its TTL to
dnskey-ttl. Keys already in the zone are not reported as published and
need no signing records.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/autosign/ns3/keygen.sh b/bin/tests/system/autosign/ns3/keygen.sh
index 5834dc1e2f..7f58b6ecd5 100644
--- a/bin/tests/system/autosign/ns3/keygen.sh
+++ b/bin/tests/system/autosign/ns3/keygen.sh
@@ -239,7 +239,7 @@ cp $infile $zonefile
setup ttl4.example
$KEYGEN -a $DEFAULT_ALGORITHM -3 -q -L 30 -fk $keytimes $zone >kg.out 2>&1 || dumpit kg.out
$KEYGEN -a $DEFAULT_ALGORITHM -3 -q -L 30 $keytimes $zone >kg.out 2>&1 || dumpit kg.out
-cp $infile $zonefile
+cat $infile K${zone}.+*.key >$zonefile
#
# A zone with a DNSKEY RRset that is published before it's activated
diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh
index 070504aea3..6ab60b07ab 100755
--- a/bin/tests/system/autosign/tests.sh
+++ b/bin/tests/system/autosign/tests.sh
@@ -938,7 +938,7 @@ checkprivate secure.optout.example 10.53.0.3 || ret=1
checkprivate ttl1.example 10.53.0.3 || ret=1
checkprivate ttl2.example 10.53.0.3 || ret=1
checkprivate ttl3.example 10.53.0.3 || ret=1
-checkprivate ttl4.example 10.53.0.3 || ret=1
+checkprivate ttl4.example 10.53.0.3 2 || ret=1 # DNSKEYs in zone file
n=$((n + 1))
status=$((status + ret))
@@ -1298,10 +1298,10 @@ pub=$(grep "DNSKEY .* is now published" ns3/named.run | grep -v "CDNSKEY" | wc -
act=$(grep "DNSKEY .* is now active" ns3/named.run | wc -l)
if [ $RSASHA1_SUPPORTED = 1 ]; then
# Include two log lines for nsec-only zone.
- [ "$pub" -eq 53 ] || ret=1
+ [ "$pub" -eq 51 ] || ret=1
[ "$act" -eq 54 ] || ret=1
else
- [ "$pub" -eq 51 ] || ret=1
+ [ "$pub" -eq 49 ] || ret=1
[ "$act" -eq 52 ] || ret=1
fi
rev=$(grep "DNSKEY .* is now revoked" ns3/named.run | wc -l)