From: Otto Moerbeek Date: Wed, 23 Oct 2019 13:18:08 +0000 (+0200) Subject: Also call primeRootNSZones() from syncres (after primeHints()) X-Git-Tag: rec-4.3.0-alpha2^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=159b1242bab07c12620b9c40d3726b752ba0e32e;p=thirdparty%2Fpdns.git Also call primeRootNSZones() from syncres (after primeHints()) --- diff --git a/pdns/recursordist/test-syncres_cc.cc b/pdns/recursordist/test-syncres_cc.cc index d741978078..46ee34258a 100644 --- a/pdns/recursordist/test-syncres_cc.cc +++ b/pdns/recursordist/test-syncres_cc.cc @@ -27,6 +27,10 @@ int getMTaskerTID() return 0; } +void primeRootNSZones(bool) +{ +} + bool RecursorLua4::preoutquery(const ComboAddress& ns, const ComboAddress& requestor, const DNSName& query, const QType& qtype, bool isTcp, vector& res, int& ret) const { return false; diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 8419150aa1..ae18dd8abe 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1025,6 +1025,7 @@ void SyncRes::getBestNSFromCache(const DNSName &qname, const QType& qtype, vecto if(subdomain.isRoot() && !brokeloop) { // We lost the root NS records primeHints(); + primeRootNSZones(g_dnssecmode != DNSSECMode::Off); LOG(prefix<