From f9f2ae96111b91e458a7be7a9f03cbdf9b3ad711 Mon Sep 17 00:00:00 2001 From: Bert Hubert Date: Tue, 3 Jun 2008 21:21:55 +0000 Subject: [PATCH] fix for the 'self-renewing NS record' as spotted by Darren Gamble git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1182 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- pdns/recursor_cache.cc | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/pdns/recursor_cache.cc b/pdns/recursor_cache.cc index b91b4e266..815f85c9d 100644 --- a/pdns/recursor_cache.cc +++ b/pdns/recursor_cache.cc @@ -228,6 +228,34 @@ int MemRecursorCache::get(time_t now, const string &qname, const QType& qt, set< return -1; } +bool MemRecursorCache::attemptToRefreshNSTTL(const QType& qt, const set& content, const CacheEntry& stored) +{ + if(!stored.d_auth) { +// cerr<<"feel free to scribble non-auth data!"<d_ttd > content.begin()->ttl) { + // cerr<<"attempt to LOWER TTL - fine by us"<