Commit 4db891ed32 for bind
commit 4db891ed32fbc4629c03211c988521f342f0c652
Author: Nicki Křížek <nicki@isc.org>
Date: Wed Nov 25 15:21:33 2026 +0000
Start ans servers before named servers
The custom ans servers stand in for remote parties that named talks
to, so they need to be listening before named starts. Otherwise
whatever named sends right at startup, such as a NOTIFY(CDS) to a
configured endpoint, hits a closed port and is lost: named does not
retry a refused NOTIFY, and nothing else sends it again.
Assisted-by: Claude:claude-opus-5-5
diff --git a/bin/tests/system/nsupdate/tests_update_sig.py b/bin/tests/system/nsupdate/tests_update_sig.py
index 508f2af012..8cc20f6e39 100644
--- a/bin/tests/system/nsupdate/tests_update_sig.py
+++ b/bin/tests/system/nsupdate/tests_update_sig.py
@@ -176,10 +176,7 @@ def test_sig_axfr_stored_opaque(ns6):
owner = f"host.{zone}."
dump_path = ns6.directory / "named_dump.db"
- # ns6 may have tried to SOA-poll ans11 before it was listening; force
- # a fresh refresh attempt and wait for the transfer to complete.
- with ns6.watch_log_from_here() as watcher:
- ns6.rndc(f"refresh {zone}")
+ with ns6.watch_log_from_start() as watcher:
watcher.wait_for_line(f"zone {zone}/IN: transferred serial 1")
# Remove any stale dump and ask named for a fresh one.
diff --git a/bin/tests/system/start.pl b/bin/tests/system/start.pl
index 1fd3d42025..cef61ede4e 100755
--- a/bin/tests/system/start.pl
+++ b/bin/tests/system/start.pl
@@ -134,6 +134,10 @@ if ($server_arg) {
# Start the servers we found.
+foreach my $name(@ans) {
+ &start_ans_server($name);
+}
+
foreach my $name(@ns) {
my $instances_so_far = count_running_lines($name);
&check_ns_port($name);
@@ -141,10 +145,6 @@ foreach my $name(@ns) {
&verify_ns_server($name, $instances_so_far);
}
-foreach my $name(@ans) {
- &start_ans_server($name);
-}
-
# Subroutines
sub read_ns_port {