From: Tom Krizek Date: Mon, 27 Nov 2023 16:20:10 +0000 (+0100) Subject: Ensure tests use mock root server if configured X-Git-Tag: v9.19.22~76^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=088fcf9a613c740910804e5954b32a538017c9b8;p=thirdparty%2Fbind9.git Ensure tests use mock root server if configured 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. --- diff --git a/bin/tests/system/chain/ns2/named.conf.in b/bin/tests/system/chain/ns2/named.conf.in index 922d2fa5f9d..6f75c0791a6 100644 --- a/bin/tests/system/chain/ns2/named.conf.in +++ b/bin/tests/system/chain/ns2/named.conf.in @@ -26,6 +26,11 @@ options { notify yes; }; +zone . { + type hint; + file "../../_common/root.hint"; +}; + zone "example" { type primary; file "example.db.signed"; diff --git a/bin/tests/system/dnssec/ns4/named4.conf.in b/bin/tests/system/dnssec/ns4/named4.conf.in index d192ceb4b3e..7d9d6e7ba36 100644 --- a/bin/tests/system/dnssec/ns4/named4.conf.in +++ b/bin/tests/system/dnssec/ns4/named4.conf.in @@ -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; };