From: Otto Moerbeek Date: Fri, 25 Oct 2019 12:05:22 +0000 (+0200) Subject: Add a comment explaining things. X-Git-Tag: rec-4.3.0-alpha2^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c16c8fe53cac7473b16c81ca56410c14ad3bf324;p=thirdparty%2Fpdns.git Add a comment explaining things. --- diff --git a/pdns/reczones.cc b/pdns/reczones.cc index d5294a44c3..dc72ab9329 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -97,11 +97,17 @@ void primeHints(void) } t_RC->doWipeCache(g_rootdnsname, false, QType::NS); t_RC->replace(time(0), g_rootdnsname, QType(QType::NS), nsset, vector>(), vector>(), false, boost::none, validationState); // and stuff in the cache - - - } + +// Do not only put the root hints into the cache, but also make sure +// the NS records of the top level domains of the names of the root +// servers are in the cache. We need these to correctly determine the +// security status of that specific domain (normally +// root-servers.net). This is caused by the accident that the root +// servers are authoritative for root-servers.net, and some +// implementations reply not with a delegation on a root-servers.net +// DS query, but with a NODATA response (the domain is unsigned). void primeRootNSZones(bool dnssecmode) { struct timeval now;