]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Disable IPv6 listening explicitly on v4-only instances
authorNicki Křížek <nicki@isc.org>
Thu, 23 Jul 2026 16:37:02 +0000 (16:37 +0000)
committerNicki Křížek <nicki@isc.org>
Thu, 6 Aug 2026 11:50:09 +0000 (13:50 +0200)
Instances without a listen-on-v6 statement listened on every IPv6
address at the assigned port. No test relies on it, nor could it, as all
of the tests instances will be listening on all the IPv6 addresses,
making it unpredictable which packet would arrive to which instance.

The configuration makes no sense and is most likely a copy-paste error.
Explicitly disable IPv6 on IPv4-only test named instances.

Assisted-by: Claude:claude-fable-5
38 files changed:
bin/tests/system/cap_glues/ns1/named.conf.j2
bin/tests/system/cap_glues/ns2/named.conf.j2
bin/tests/system/cap_glues/ns3/named.conf.j2
bin/tests/system/delegation_ttl/ns1/named.conf.j2
bin/tests/system/delegation_ttl/ns2/named.conf.j2
bin/tests/system/delegdb_flush/ns1/named.conf.j2
bin/tests/system/ede24/ns1/named.conf.j2
bin/tests/system/ede24/ns2/named.conf.j2
bin/tests/system/expiredglue/ns1/named.conf.j2
bin/tests/system/expiredglue/ns2/named.conf.j2
bin/tests/system/expiredglue/ns3/named.conf.j2
bin/tests/system/expiredglue/ns4/named.conf.j2
bin/tests/system/hooks/ns1/named.conf.j2
bin/tests/system/hooks/ns2/named.conf.j2
bin/tests/system/nslimit_outdomain/ns1/named.conf.j2
bin/tests/system/nslimit_outdomain/ns4/named.conf.j2
bin/tests/system/nsprocessinglimit/ns1/named.conf.j2
bin/tests/system/nsprocessinglimit/ns2/named.conf.j2
bin/tests/system/nsprocessinglimit/ns3/named.conf.j2
bin/tests/system/nsprocessinglimit/ns4/named.conf.j2
bin/tests/system/redirect/ns10/named.conf.j2
bin/tests/system/redirect/ns5/named.conf.j2
bin/tests/system/redirect/ns6/named.conf.j2
bin/tests/system/redirect/ns7/named.conf.j2
bin/tests/system/redirect/ns8/named.conf.j2
bin/tests/system/redirect/ns9/named.conf.j2
bin/tests/system/rpzextra/ns2/named.conf.j2
bin/tests/system/rpzextra/ns3/named.conf.j2
bin/tests/system/selfpointedglue/ns1/named.conf.j2
bin/tests/system/selfpointedglue/ns2/named.conf.j2
bin/tests/system/selfpointedglue/ns4/named.conf.j2
bin/tests/system/showconf/ns1/named.conf.j2
bin/tests/system/shutdown/ns1/named.conf.j2
bin/tests/system/shutdown/ns2/named.conf.j2
bin/tests/system/xfer_servers_list/ns1/named.conf.j2
bin/tests/system/xfer_servers_list/ns2/named.conf.j2
bin/tests/system/xfer_servers_list/ns3/named.conf.j2
bin/tests/system/xfer_servers_list/ns4/named.conf.j2

index ef0f9a93838a99ea4ac20fb67276ee750033c517..0cc901254d08438b15768f1a84b626db4afa755a 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 958f0a2f66cfbe30f14b0e82edc5e639be2ff986..6f5986d7f0cc914176930642bfe3dded9ea66909 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index f5863da1a25a7c5dc8fd95380764591fa4739982..3ccb80b195b9bf5a1ac3bd92e90e0fa9c4d43968 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.3; };
+       listen-on-v6 { none; };
        recursion yes;
        dnssec-validation no;
 };
index ef0f9a93838a99ea4ac20fb67276ee750033c517..0cc901254d08438b15768f1a84b626db4afa755a 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index b425652cde533435bb8f6deaed9279c94851b607..e0e6ec90efd9414eb44ab73bb333254adf796f9e 100644 (file)
@@ -8,6 +8,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        recursion yes;
        dnssec-validation no;
 {% if minttl != None %}
index 6db5eb785be2fc8f4f24b50586356afc4f9cd15d..0e2f8eeac65f2246aadbb0fc236272d3464f149a 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        max-cache-size 8000;
 };
 
index 7b530d3174e9f7157ee5ad43fef14cdf8e773919..5f07e5b810f116ea2afc6f0729775a5ed61ed19e 100644 (file)
@@ -2,6 +2,7 @@ options {
        port @PORT@;
        query-source address 10.53.0.1;
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        transfer-source 10.53.0.1;
        pid-file "named.pid";
        recursion no;
index ad1fac2f654c15209db7cdda3d199b04c483761e..27e3b71296f60c9ec8830ebdc052a1d4b59cf685 100644 (file)
@@ -3,6 +3,7 @@ options {
        query-source address 10.53.0.2;
        notify-source 10.53.0.2;
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        transfer-source 10.53.0.2;
        pid-file "named.pid";
        recursion no;
index b81b2a505560e19e34684b5ecafab9795f892629..42dba75f8691263658b240469e521b1dc5da9e0c 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index af32dc46fd38705c409b84929447c9906e10a7be..d0b75bf8657a61a9e13d493dd0219fa3ce0dfa7d 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 42408a9d6a2e2fe4a3afa4855fe3b624c288c65e..f83df484965e5379facfe200cde1f9a1bbde13c3 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.3; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 88729c5659860a1f653b82a5a6ab5f996f5583fd..8cadbee4b02cf2dbf4afbca0e160e5cf2d2fb377 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.4; };
+       listen-on-v6 { none; };
        recursion yes;
        dnssec-validation no;
 };
index 65d0dc2334d044a0105032efd343168b0c04c2cf..50388ca2df53fd8bb9a9e8f5de3c99706028a7eb 100644 (file)
@@ -7,6 +7,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
        notify yes;
index 68e885b5bc4565be5ce9b669379380adbe92da8c..503423769930eb4cdd572f7f7c7ef67cab71bf21 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation yes;
        notify yes;
index 987693a98b6c9941c0b6d32b20865b1a68430912..a14fedbb4e7d6ae691c57fdced63af890cccc1c1 100644 (file)
@@ -18,6 +18,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 543c5a08ef60a12588f193a98888695ddd703bdf..05d992cc739cf1fe9b5b6b46feb411419fefca77 100644 (file)
@@ -19,6 +19,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.4; };
+       listen-on-v6 { none; };
        recursion yes;
        dnssec-validation no;
        dnstap { resolver query; };
index b81b2a505560e19e34684b5ecafab9795f892629..42dba75f8691263658b240469e521b1dc5da9e0c 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index af32dc46fd38705c409b84929447c9906e10a7be..d0b75bf8657a61a9e13d493dd0219fa3ce0dfa7d 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 7a1cc54d9ee726e5f22153eaa8fade27d1bbf8fe..bca15ee2ee8e34e1b43676a59b9beca4dc62f841 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.3; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 4885b240d36307743c7f488a10d13376ae9b4531..8e98fcc2ecffae13cef153c7cdd57252b7eef312 100644 (file)
@@ -7,6 +7,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.4; };
+       listen-on-v6 { none; };
        recursion yes;
        dnssec-validation no;
        dnstap { resolver query; };
index d33395ae883d03366b0acc23c664e818209699d0..37e036c5d087c013f01a693f4302cb07f642ccc1 100644 (file)
@@ -8,6 +8,7 @@ options {
        transfer-source 10.53.0.10;
        port @PORT@;
        listen-on { 10.53.0.10; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        nxdomain-redirect redirect;
        dnssec-validation yes;
index 60b7a17f49a411b9e3d42235f6b13aa8bb5259c4..2af413e3f7495337302cf7b041dbb1000ffde073 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.5;
        port @PORT@;
        listen-on { 10.53.0.5; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        nxdomain-redirect signed;
        dnssec-validation no;
index 7f99d5567de59734a7f457b012904705f4823859..618b89f024903867f5adb4932e7daa7152478391 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.6;
        port @PORT@;
        listen-on { 10.53.0.6; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        nxdomain-redirect unsigned;
        dnssec-validation no;
index 46af5b6bd02f2347ab5dbf11bd8d678cee93716a..b5e2aaef382b32c949cba14b307d393f8b8704d4 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.7;
        port @PORT@;
        listen-on { 10.53.0.7; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        nxdomain-redirect redirect;
        dnssec-validation no;
index 3ba4abf80424779f39f7b7492daecdec0d1307e4..4c67fb8b5e86e2cf28cbb1b27c0f6dc378d40a25 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.8;
        port @PORT@;
        listen-on { 10.53.0.8; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        nxdomain-redirect redirect;
        dnssec-validation no;
index 0488abce1a9d8bf7c8d5b534685f86634ffc7292..11329fd04c8611199a23c5cb9d3acd08c999aadf 100644 (file)
@@ -7,6 +7,7 @@ options {
        transfer-source 10.53.0.9;
        port @PORT@;
        listen-on { 10.53.0.9; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        dnssec-validation no;
        recursion no;
index 2961b5185ed5e34877afa0a68e1aa7107bf1cc5c..f7ba0ec61834e7d26360cfd7baeb231260b0f6a6 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.2;
        port @PORT@;
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        notify no;
        dnssec-validation no;
index 8ba631b798a6e68a9cff9f97a139ce856781e502..08723e4302d7cc9f84b4e1390b29ed1b4465c965 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.3;
        port @PORT@;
        listen-on { 10.53.0.3; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        notify no;
        dnssec-validation no;
index 987693a98b6c9941c0b6d32b20865b1a68430912..a14fedbb4e7d6ae691c57fdced63af890cccc1c1 100644 (file)
@@ -18,6 +18,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 080731257f73d924d4a43fdadd744bc8998b2972..3ee7077ea0784752078ddbf272de51629e8b1c49 100644 (file)
@@ -18,6 +18,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
 };
index 543c5a08ef60a12588f193a98888695ddd703bdf..05d992cc739cf1fe9b5b6b46feb411419fefca77 100644 (file)
@@ -19,6 +19,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.4; };
+       listen-on-v6 { none; };
        recursion yes;
        dnssec-validation no;
        dnstap { resolver query; };
index 0b437d0eaebb46dbf0fe5cdc12e000c5da0003fe..5d21133484eb7f2bb523ccd9db06d44c1e4ab94e 100644 (file)
@@ -5,6 +5,7 @@ options {
        port @PORT@;
        pid-file "named.pid";
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        recursion no;
        dnssec-validation no;
        notify yes;
index 596390681837937a6ff931a93118f8a972905e8a..49393e6f46378ffd12cba0469f5ed0763f00f7a0 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.1;
        port @PORT@;
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        notify no;
        dnssec-validation no;
index 7d4df6b77e0913b3e2ead33be3dc45b16e7e51d5..dcc6824fe34885ac6ddf31dac55a78e9a43ed024 100644 (file)
@@ -6,6 +6,7 @@ options {
        transfer-source 10.53.0.2;
        port @PORT@;
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        pid-file "named.pid";
        notify no;
        dnssec-validation no;
index 4f1dbdc372d8fd5129f5989eda2436891c0a22c6..71dd04a6c8c9622082493d9269e345913a7dedb8 100644 (file)
@@ -2,6 +2,7 @@ options {
        port @PORT@;
        query-source address 10.53.0.1;
        listen-on { 10.53.0.1; };
+       listen-on-v6 { none; };
        transfer-source 10.53.0.1;
        pid-file "named.pid";
        recursion no;
index 9be27c0c7d8ce2f50c2fab6fcc3224ed50731061..0da1e0de29bd3dacb67d9d25e2dd2bb09cd46409 100644 (file)
@@ -3,6 +3,7 @@ options {
        query-source address 10.53.0.2;
        notify-source 10.53.0.2;
        listen-on { 10.53.0.2; };
+       listen-on-v6 { none; };
        transfer-source 10.53.0.2;
        pid-file "named.pid";
        recursion no;
index 4e5b928c13035d179e82eb0db8ce22a5f8a661ad..6d9cfee088d526fdc2d91888262330b63e47fa88 100644 (file)
@@ -3,6 +3,7 @@ options {
        query-source address 10.53.0.3;
        notify-source 10.53.0.3;
        listen-on { 10.53.0.3; };
+       listen-on-v6 { none; };
        transfer-source 10.53.0.3;
        pid-file "named.pid";
        recursion no;
index 6d7d29057b73a1241ef4684a7fd5a3de01967670..08fe9a2d09a97369db74f5f862c7c306022d9aed 100644 (file)
@@ -3,6 +3,7 @@ options {
        query-source address 10.53.0.4;
        notify-source 10.53.0.4;
        listen-on { 10.53.0.4; };
+       listen-on-v6 { none; };
        transfer-source 10.53.0.4;
        pid-file "named.pid";
        recursion no;