From 8dd25fc98bb23047bc7c2babf1aab88016a7353d Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 12 Nov 2015 11:07:49 +0100 Subject: [PATCH] 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 --- pdns/recursor_cache.cc | 2 +- pdns/reczones.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) -- 2.40.0