]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Keep the live-internet test instances on the standard DNS port
authorNicki Křížek <nicki@isc.org>
Wed, 5 Aug 2026 12:53:26 +0000 (12:53 +0000)
committerNicki Křížek <nicki@isc.org>
Thu, 6 Aug 2026 11:50:09 +0000 (13:50 +0200)
The ns1 instances in mirror_root_zone and rfc5011 talk to the root
servers on the live internet: the options-level port must remain 53
for outgoing queries to reach the real servers, and the *-source
addresses must remain unset so that a routable source address is
picked. Exempt these two configs from the standard plumbing and
spell out the intent in a comment.

Assisted-by: Claude:claude-fable-5
bin/tests/system/mirror_root_zone/ns1/named.conf.j2
bin/tests/system/rfc5011/ns1/named.conf.j2

index 4771596a07bb90324085fe90e684abcce07ac3a4..e7e8ea34d7241601332c3685c8f55759c44c1b67 100644 (file)
@@ -1,11 +1,14 @@
 {% include "_common/controls.conf.j2" %}
 
 options {
-       query-source address 10.53.0.1;
-       notify-source 10.53.0.1;
-       transfer-source 10.53.0.1;
+       # This instance transfers the root zone from the live internet.
+       # The options-level port and the *-source addresses must stay at
+       # their defaults so that outgoing traffic uses port 53 and a
+       # routable source address.
+       port 53;
        pid-file "named.pid";
-       listen-on port @PORT@ {10.53.0.1;};
+       listen-on port @PORT@ { @ns.ip@; };
+       listen-on-v6 { none; };
 };
 
 zone "." { type mirror; };
index 47551931cf58e754e474b45a5d8fdbc1e3a975db..9733ff8798a37254c962df1157afcc122021f420 100644 (file)
@@ -3,13 +3,14 @@
  */
 
 options {
-       query-source address 10.53.0.1;
-       notify-source 10.53.0.1;
-       transfer-source 10.53.0.1;
+       # This instance queries the root servers on the live internet.
+       # The options-level port and the *-source addresses must stay at
+       # their defaults so that outgoing traffic uses port 53 and a
+       # routable source address.
+       port 53;
        pid-file "named.pid";
-       listen-on port @PORT@ { 10.53.0.1; };
-       recursion yes;
+       listen-on port @PORT@ { @ns.ip@; };
+       listen-on-v6 { none; };
 };
 
 {% include "_common/controls.conf.j2" %}
-