From 6abf3feb86c0b20ccf0bd156980071c5d3d1b084 Mon Sep 17 00:00:00 2001 From: Otto Date: Wed, 18 Aug 2021 09:24:45 +0200 Subject: [PATCH] Also check if the remoteIP is one of the IPs we would have forwarded to, even if it's coming from the cache. --- pdns/syncres.cc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 384051d7e7..85ae467307 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -2363,7 +2363,15 @@ bool SyncRes::throttledOrBlocked(const std::string& prefix, const ComboAddress& s_dontqueries++; return true; } else { - LOG(prefix<second.d_servers; + if (std::find(ips.cbegin(), ips.cend(), remoteIP) == ips.cend()) { + LOG(prefix<