]> granicus.if.org Git - pdns/commitdiff
On incoming NOTIFY load our serial from backend to have it available during slave...
authorKlaus Darilion <klaus.darilion@nic.at>
Tue, 31 Jul 2018 21:09:35 +0000 (21:09 +0000)
committerKlaus Darilion <klaus.darilion@nic.at>
Tue, 31 Jul 2018 21:09:35 +0000 (21:09 +0000)
Also log ourserial to ease debugging.

pdns/packethandler.cc

index 415e283430d3303b86fdea0d54be5e0487dbf91a..c4ef8914eb579c8c64832d5486ece29f83a29977 100644 (file)
@@ -887,7 +887,7 @@ int PacketHandler::processNotify(DNSPacket *p)
   // Domain verification
   //
   DomainInfo di;
-  if(!B.getDomainInfo(p->qdomain, di, false) || !di.backend) {
+  if(!B.getDomainInfo(p->qdomain, di, true) || !di.backend) {
     if(::arg().mustDo("supermaster")) {
       g_log<<Logger::Warning<<"Received NOTIFY for "<<p->qdomain<<" from "<<p->getRemote()<<" for which we are not authoritative, trying supermaster"<<endl;
       return trySuperMaster(p, p->getTSIGKeyname());
@@ -921,7 +921,7 @@ int PacketHandler::processNotify(DNSPacket *p)
   }
 
   if(::arg().mustDo("slave")) {
-    g_log<<Logger::Debug<<"Queueing slave check for "<<p->qdomain<<endl;
+    g_log<<Logger::Debug<<"Queueing slave check for "<<p->qdomain<<", our serial is "<<di.serial<<endl;
     Communicator.addSlaveCheckRequest(di, p->d_remote);
   }
   return 0;