From: Pieter Lexis Date: Thu, 10 Nov 2016 12:56:58 +0000 (+0100) Subject: On (re-)priming, fetch the root NS records X-Git-Tag: rec-4.0.4~19^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3beb3b25c0e1900d549bf5158d4fbd63d136af5f;p=thirdparty%2Fpdns.git On (re-)priming, fetch the root NS records --- diff --git a/pdns/pdns_recursor.cc b/pdns/pdns_recursor.cc index 079ca11a02..91110054cd 100644 --- a/pdns/pdns_recursor.cc +++ b/pdns/pdns_recursor.cc @@ -1937,35 +1937,9 @@ static void houseKeeping(void *) } if(now.tv_sec - last_rootupdate > 7200) { - SyncRes sr(now); - sr.setDoEDNS0(true); - vector ret; - - sr.setNoCache(); - int res=-1; - try { - res=sr.beginResolve(DNSName("."), QType(QType::NS), 1, ret); - } - catch(PDNSException& e) - { - L<>(), true); // and stuff in the cache (auth) + t_RC->replace(time(0), DNSName("."), QType(QType::NS), nsset, vector>(), false); // and stuff in the cache (auth) } static void makeNameToIPZone(SyncRes::domainmap_t* newMap, const DNSName& hostname, const string& ip) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index a3455f0571..0754e5a822 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -632,8 +632,10 @@ void SyncRes::getBestNSFromCache(const DNSName &qname, const QType& qtype, vecto LOG(prefix<