From: Michał Kępień Date: Fri, 26 Apr 2019 09:05:56 +0000 (+0200) Subject: Make root zone data match root hints X-Git-Tag: v9.15.0~23^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=978a0d25558f7e9e20f95902bececd1217bbb921;p=thirdparty%2Fbind9.git Make root zone data match root hints In the "allow-query" system test, ns3 uses a root hints file which contains a single entry for a.root-servers.nil (10.53.0.1). This name is not present in the root zone served by ns1, which means querying it for that name and any type will yield an NXDOMAIN response. When combined with unfavorable thread scheduling, this can lead to ns3 caching an NXDOMAIN response for the only root server it is aware of and thus to false positives for the "allow-query" system test caused by ns3 returning unexpected SERVFAIL responses. Fix by modifying the root zone served by ns1 so that authoritative responses to a.root-servers.nil queries match the root hints file used by ns3. --- diff --git a/bin/tests/system/allow-query/ns1/root.db b/bin/tests/system/allow-query/ns1/root.db index 0040271648a..32c7ea064ad 100644 --- a/bin/tests/system/allow-query/ns1/root.db +++ b/bin/tests/system/allow-query/ns1/root.db @@ -8,9 +8,9 @@ ; information regarding copyright ownership. $TTL 300 -@ SOA ns1. hostmaster.localhost. 1 3600 1200 604800 3600 - NS ns1. -ns1. A 10.53.0.1 +@ SOA a.root-servers.nil. hostmaster.localhost. 1 3600 1200 604800 3600 + NS a.root-servers.nil. +a.root-servers.nil. A 10.53.0.1 normal.example. NS ns2.normal.example. ns2.normal.example. A 10.53.0.2