From: bert hubert Date: Tue, 19 Feb 2019 22:37:30 +0000 (+0100) Subject: our ringbuffers got fed packetcached delegation responses as 'queries for domains... X-Git-Tag: dnsdist-1.4.0-alpha1~46^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abfec582b0ab3740e70caa6ae478003f246ccc9e;p=thirdparty%2Fpdns.git our ringbuffers got fed packetcached delegation responses as 'queries for domains we were not auth for'. Fixed. --- diff --git a/pdns/responsestats-auth.cc b/pdns/responsestats-auth.cc index 2112dce2a6..6187180efe 100644 --- a/pdns/responsestats-auth.cc +++ b/pdns/responsestats-auth.cc @@ -25,7 +25,7 @@ void ResponseStats::submitResponse(DNSPacket &p, bool udpOrTCP) { if(p.d.aa) { if (p.d.rcode==RCode::NXDomain) S.ringAccount("nxdomain-queries",p.qdomain.toLogString()+"/"+p.qtype.getName()); - } else if (p.isEmpty()) { + } else if (p.d.rcode == RCode::Refused) { S.ringAccount("unauth-queries",p.qdomain.toLogString()+"/"+p.qtype.getName()); S.ringAccount("remotes-unauth",p.d_remote); }