]> granicus.if.org Git - pdns/commitdiff
add qtype to unauth-queries statistics
authorKees Monshouwer <mind04@monshouwer.org>
Wed, 3 Jul 2013 09:52:45 +0000 (11:52 +0200)
committermind04 <mind04@monshouwer.org>
Wed, 3 Jul 2013 09:52:45 +0000 (11:52 +0200)
pdns/nameserver.cc
pdns/tcpreceiver.cc

index 013ed2f9ad339a244713890bb7951f6126433e7f..85ced7bcf3aac3c9817d50140591c94066baa5e3 100644 (file)
@@ -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());
   }
 
index cf5d98e482a826d7ec0da833be6b118bbd24f668..7345daa0016eb8a8aa1937ef7e00c7b96f1b3908 100644 (file)
@@ -182,7 +182,7 @@ void TCPNameserver::sendPacket(shared_ptr<DNSPacket> 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());
     }
   }