From: Nicki Křížek Date: Wed, 5 Aug 2026 12:53:26 +0000 (+0000) Subject: Keep the live-internet test instances on the standard DNS port X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bbffdd65093d7f1e943eefd7593a7b68ec5ddd8b;p=thirdparty%2Fbind9.git Keep the live-internet test instances on the standard DNS port 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 --- diff --git a/bin/tests/system/mirror_root_zone/ns1/named.conf.j2 b/bin/tests/system/mirror_root_zone/ns1/named.conf.j2 index 4771596a07b..e7e8ea34d72 100644 --- a/bin/tests/system/mirror_root_zone/ns1/named.conf.j2 +++ b/bin/tests/system/mirror_root_zone/ns1/named.conf.j2 @@ -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; }; diff --git a/bin/tests/system/rfc5011/ns1/named.conf.j2 b/bin/tests/system/rfc5011/ns1/named.conf.j2 index 47551931cf5..9733ff8798a 100644 --- a/bin/tests/system/rfc5011/ns1/named.conf.j2 +++ b/bin/tests/system/rfc5011/ns1/named.conf.j2 @@ -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" %} -