]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Ensure tests use mock root server if configured
authorTom Krizek <tkrizek@isc.org>
Mon, 27 Nov 2023 16:20:10 +0000 (17:20 +0100)
committerTom Krizek <tkrizek@isc.org>
Thu, 18 Jan 2024 16:19:39 +0000 (17:19 +0100)
These tests have ns1 configured as a mock root server. Make sure it is
used in all config files of those tests, otherwise some queries could
leak to root nameservers.

bin/tests/system/chain/ns2/named.conf.in
bin/tests/system/dnssec/ns4/named4.conf.in

index 922d2fa5f9d620aaa09a9730a1f0119880defc0d..6f75c0791a6af9a93f0817ebc85633b74c7fe050 100644 (file)
@@ -26,6 +26,11 @@ options {
        notify yes;
 };
 
+zone . {
+       type hint;
+       file "../../_common/root.hint";
+};
+
 zone "example" {
        type primary;
        file "example.db.signed";
index d192ceb4b3eb1c2c6397f00ffe19518b6592c6ee..7d9d6e7ba36f19ac6382b795a29aebba66e21acb 100644 (file)
@@ -39,6 +39,11 @@ key auth {
 
 include "trusted.conf";
 
+zone "." {
+       type hint;
+       file "../../_common/root.hint";
+};
+
 view rec {
        match-recursive-only yes;
        recursion yes;
@@ -46,11 +51,6 @@ view rec {
        dnssec-accept-expired yes;
        minimal-responses no;
 
-       zone "." {
-               type hint;
-               file "../../_common/root.hint";
-       };
-
        zone secure.example {
                type static-stub;
                server-addresses { 10.53.0.4; };