Commit b604ee54fc for bind
commit b604ee54fce8383602e5e6f9683a885027c15366
Author: Colin Vidal <colin@isc.org>
Date: Wed Nov 25 11:28:47 2026 +0100
Test a DELEG only zone is signed with inline-signing
Add a authoritative DELEG system test which ensures that a zone with
inline-signing (i.e. default dnssec-policy) is correctly signed even if
no NS record are defined in the zone (can occurs if this is a DELEG-only
zone).
diff --git a/bin/tests/system/deleg/ns1/delegonly.db.in b/bin/tests/system/deleg/ns1/delegonly.db.in
new file mode 100644
index 0000000000..07ae6d9c55
--- /dev/null
+++ b/bin/tests/system/deleg/ns1/delegonly.db.in
@@ -0,0 +1,9 @@
+$TTL 300 ; 5 minutes
+@ IN SOA mname1. . (
+ 2000042407 ; serial
+ 20 ; refresh (20 seconds)
+ 20 ; retry (20 seconds)
+ 1814400 ; expire (3 weeks)
+ 3600 ; minimum (1 hour)
+ )
+a IN A 1.2.3.4
diff --git a/bin/tests/system/deleg/ns1/named.conf.j2 b/bin/tests/system/deleg/ns1/named.conf.j2
index c779310b14..34edcd8be5 100644
--- a/bin/tests/system/deleg/ns1/named.conf.j2
+++ b/bin/tests/system/deleg/ns1/named.conf.j2
@@ -92,3 +92,9 @@ zone noadt {
initial-file "example.db.in";
dnssec-policy default;
};
+
+zone delegonly {
+ type primary;
+ file "delegonly.db.in";
+ dnssec-policy default;
+};
diff --git a/bin/tests/system/deleg/tests_auth.py b/bin/tests/system/deleg/tests_auth.py
index 86792149af..af7eb5639d 100644
--- a/bin/tests/system/deleg/tests_auth.py
+++ b/bin/tests/system/deleg/tests_auth.py
@@ -464,3 +464,10 @@ def test_deleg_checknames(ns1):
res = isctest.query.tcp(msg, ns1.ip)
isctest.check.noerror(res)
isctest.check.empty_answer(res)
+
+
+def test_deleg_inlinesigning_delegonly(ns1):
+ msg = isctest.query.create("a.delegonly.", "A", dnssec=True)
+ res = isctest.query.tcp(msg, ns1.ip)
+ isctest.check.noerror(res)
+ assert len(res.answer) == 2 # A and its RRSIG