From 68536f5ba1b37b1ab6008ab8842a4eeb676cc3e4 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Tue, 7 Jul 2020 09:56:41 +0200 Subject: [PATCH] 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. --- pdns/syncres.cc | 2 ++ 1 file changed, 2 insertions(+) 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; -- 2.47.2