]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Only log remote nameservers 1946/head
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Dec 2014 12:23:08 +0000 (13:23 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sun, 14 Dec 2014 12:23:08 +0000 (13:23 +0100)
Skip the A/AAAA records.

Previously, we would log:
Unable to find backend willing to host example.com for potential supermaster x.x.x.x. 4 remote nameservers:
test1.example.com
test2.example.com
x.x.x.x
x.x.x.y

pdns/packethandler.cc

index 12a5968b534e37e3c398f0d00c6e90bfde999b2d..7d1185d263e9be178154ac9adbe850c4c55d9c4d 100644 (file)
@@ -745,9 +745,10 @@ int PacketHandler::trySuperMasterSynchronous(DNSPacket *p)
   string nameserver, account;
   DNSBackend *db;
   if(!B.superMasterBackend(p->getRemote(), p->qdomain, nsset, &nameserver, &account, &db)) {
-    L<<Logger::Error<<"Unable to find backend willing to host "<<p->qdomain<<" for potential supermaster "<<p->getRemote()<<". "<<nsset.size()<<" remote nameservers: "<<endl;
+    L<<Logger::Error<<"Unable to find backend willing to host "<<p->qdomain<<" for potential supermaster "<<p->getRemote()<<". Remote nameservers: "<<endl;
     BOOST_FOREACH(class DNSResourceRecord& rr, nsset) {
-      L<<Logger::Error<<rr.content<<endl;
+      if(rr.qtype.getCode()==QType::NS)
+        L<<Logger::Error<<rr.content<<endl;
     }
     return RCode::Refused;
   }