From: Remi Gacogne Date: Tue, 7 Jul 2020 07:56:41 +0000 (+0200) Subject: rec: Ignore cache-only for DSs retrieval X-Git-Tag: rec-4.4.0-alpha2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F9297%2Fhead;p=thirdparty%2Fpdns.git rec: Ignore cache-only for DSs retrieval When the DSs are needed for validation, the initial RD flag should not prevent us from going to the network. --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 820efea01b..a96fdf620e 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2062,7 +2062,9 @@ vState SyncRes::getDSRecords(const DNSName& zone, dsmap_t& ds, bool taOnly, unsi std::vector dsrecords; vState state = Indeterminate; + const bool oldCacheOnly = setCacheOnly(false); int rcode = doResolve(zone, QType(QType::DS), dsrecords, depth + 1, beenthere, state); + setCacheOnly(oldCacheOnly); if (rcode == RCode::NoError || (rcode == RCode::NXDomain && !bogusOnNXD)) { uint8_t bestDigestType = 0;