From 4dbda6523e103f9ba5d6820bb08c1e0a7340e327 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 3 Jul 2013 11:52:45 +0200 Subject: [PATCH] add qtype to unauth-queries statistics --- pdns/nameserver.cc | 2 +- pdns/tcpreceiver.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()); } } -- 2.47.2