From: Kees Monshouwer Date: Wed, 3 Jul 2013 09:52:45 +0000 (+0200) Subject: add qtype to unauth-queries statistics X-Git-Tag: rec-3.6.0-rc1~580^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F891%2Fhead;p=thirdparty%2Fpdns.git add qtype to unauth-queries statistics --- diff --git a/pdns/nameserver.cc b/pdns/nameserver.cc index 013ed2f9ad..85ced7bcf3 100644 --- a/pdns/nameserver.cc +++ b/pdns/nameserver.cc @@ -249,7 +249,7 @@ void UDPNameserver::send(DNSPacket *p) if (p->d.rcode==RCode::NXDomain) S.ringAccount("nxdomain-queries",p->qdomain+"/"+p->qtype.getName()); } else if (p->isEmpty()) { - S.ringAccount("unauth-queries",p->qdomain); + S.ringAccount("unauth-queries",p->qdomain+"/"+p->qtype.getName()); S.ringAccount("remotes-unauth",p->getRemote()); } diff --git a/pdns/tcpreceiver.cc b/pdns/tcpreceiver.cc index cf5d98e482..7345daa001 100644 --- a/pdns/tcpreceiver.cc +++ b/pdns/tcpreceiver.cc @@ -182,7 +182,7 @@ void TCPNameserver::sendPacket(shared_ptr p, int outsock) if(p->d.rcode==RCode::NXDomain) S.ringAccount("nxdomain-queries",p->qdomain+"/"+p->qtype.getName()); } else if(p->isEmpty()) { - S.ringAccount("unauth-queries",p->qdomain); + S.ringAccount("unauth-queries",p->qdomain+"/"+p->qtype.getName()); S.ringAccount("remotes-unauth",p->getRemote()); } }