From: Otto Moerbeek Date: Mon, 21 Nov 2022 10:38:54 +0000 (+0100) Subject: Infra queries should not use refresh mode. X-Git-Tag: dnsdist-1.8.0-rc1~233^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=28a3eea55d15d33a65b2108c1598c15d00e0173c;p=thirdparty%2Fpdns.git Infra queries should not use refresh mode. When I introduced serve state in #11776, I reintroduced the mistake previously fixed in #11376. Fixes #12078 --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index c1287fc9b4..52da63debb 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2086,9 +2086,6 @@ vector SyncRes::getAddrs(const DNSName &qname, unsigned int depth, if (d_serveStale) { flags |= MemRecursorCache::ServeStale; } - if (d_refresh) { - flags |= MemRecursorCache::Refresh; - } try { // First look for both A and AAAA in the cache res_t cset; @@ -2236,9 +2233,6 @@ void SyncRes::getBestNSFromCache(const DNSName &qname, const QType qtype, vector if (d_serveStale) { flags |= MemRecursorCache::ServeStale; } - if (d_refresh) { - flags |= MemRecursorCache::Refresh; - } do { if (cutOffDomain && (subdomain == *cutOffDomain || !subdomain.isPartOf(*cutOffDomain))) { break;