From: bert hubert Date: Thu, 12 Nov 2015 10:07:49 +0000 (+0100) Subject: fix up that we 1) entered the root NSset as DNSName() and not as DNSName(".") and... X-Git-Tag: dnsdist-1.0.0-alpha1~230^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8dd25fc98bb23047bc7c2babf1aab88016a7353d;p=pdns fix up that we 1) entered the root NSset as DNSName() and not as DNSName(".") and 2) THAT THIS ACTUALLY WORKED BECAUSE OF A SECOND BUG --- diff --git a/pdns/recursor_cache.cc b/pdns/recursor_cache.cc index dc23ed300..d80771856 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -164,7 +164,7 @@ void MemRecursorCache::replace(time_t now, const DNSName &qname, const QType& qt } // limit TTL of auth->auth NSset update if needed, except for root - if(ce.d_auth && auth && qt.getCode()==QType::NS && !(qname == DNSName())) { + if(ce.d_auth && auth && qt.getCode()==QType::NS && !qname.isRoot()) { // cerr<<"\tLimiting TTL of auth->auth NS set replace"<replace(time(0), DNSName(), QType(QType::NS), nsset, vector>(), true); // and stuff in the cache (auth) + t_RC->replace(time(0), DNSName("."), QType(QType::NS), nsset, vector>(), true); // and stuff in the cache (auth) } static void makeNameToIPZone(SyncRes::domainmap_t* newMap, const DNSName& hostname, const string& ip)