Commit 27f822c444 for bind
commit 27f822c4448784d68ac4615d91aec70aa1d489a5
Author: Štěpán Balážik <stepan@isc.org>
Date: Wed Nov 25 18:32:10 2026 +0100
Spell the domain names in the matchers with a trailing dot
`Domain` and `Qname` read a string as an absolute name either way, but
`dns.rrset.from_text()` makes it relative, so a name without the dot
only works in some places. These matchers were the last ones without
it.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/digdelv/ans7/ans.py b/bin/tests/system/digdelv/ans7/ans.py
index be6cb7f759..2c3bbb08e2 100644
--- a/bin/tests/system/digdelv/ans7/ans.py
+++ b/bin/tests/system/digdelv/ans7/ans.py
@@ -24,7 +24,7 @@ class CloseHandler(ResponseHandler):
Handler that doesn't respond and closes TCP connection.
"""
- matcher = Domain("close.example")
+ matcher = Domain("close.example.")
async def get_responses(
self, qctx: QueryContext
@@ -58,7 +58,7 @@ class SilentEverySecondQueryHandler(IgnoreAllQueries):
one gets the server's SERVFAIL.
"""
- matcher = EverySecond(Domain("silent-then-servfail.example"))
+ matcher = EverySecond(Domain("silent-then-servfail.example."))
class SilentHandler(IgnoreAllQueries):
@@ -66,7 +66,7 @@ class SilentHandler(IgnoreAllQueries):
Handler that doesn't respond.
"""
- matcher = Domain("silent.example")
+ matcher = Domain("silent.example.")
def main() -> None:
diff --git a/bin/tests/system/qmin/ans4/ans.py b/bin/tests/system/qmin/ans4/ans.py
index d30a18ae0e..7b37ca68fe 100644
--- a/bin/tests/system/qmin/ans4/ans.py
+++ b/bin/tests/system/qmin/ans4/ans.py
@@ -56,7 +56,7 @@ class StaleHandler(ResponseHandler):
handler implemented below.
"""
- matcher = Domain("b.stale", "a.b.stale")
+ matcher = Domain("b.stale.", "a.b.stale.")
async def get_responses(
self, qctx: QueryContext
diff --git a/bin/tests/system/reclimit/reclimit_ans.py b/bin/tests/system/reclimit/reclimit_ans.py
index 5d6038eb21..fb7ae4c036 100644
--- a/bin/tests/system/reclimit/reclimit_ans.py
+++ b/bin/tests/system/reclimit/reclimit_ans.py
@@ -146,7 +146,7 @@ def ns(owner: str | dns.name.Name, target: str | dns.name.Name) -> dns.rrset.RRs
class DirectExampleHandler(ReclimitHandler):
- matcher = Qname("direct.example.org", "direct.example.net")
+ matcher = Qname("direct.example.org.", "direct.example.net.")
def __init__(self, state: ReclimitState, local_ns_number: int) -> None:
self._local_ns_number = local_ns_number
@@ -161,7 +161,7 @@ class DirectExampleHandler(ReclimitHandler):
class IndirectExampleOrgHandler(ReclimitHandler):
- matcher = Qname(*[f"indirect{i}.example.org" for i in range(1, 9)])
+ matcher = Qname(*[f"indirect{i}.example.org." for i in range(1, 9)])
def __init__(self, state: ReclimitState, local_ns_number: int) -> None:
self._local_ns_number = local_ns_number