From 56a4f068fa273ecf1efd931f16429fa1b02c33d8 Mon Sep 17 00:00:00 2001 From: Aki Tuomi Date: Tue, 25 Aug 2015 06:51:01 +0300 Subject: [PATCH] Do not check slave domain freshness unless slave=yes Before this, the code would perform initial AXFR from master(s) for slave domains on nameserver with slave=no. --- pdns/slavecommunicator.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 8de367f1c..b0f0273b5 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -524,6 +524,9 @@ void CommunicatorClass::addTrySuperMasterRequest(DNSPacket *p) void CommunicatorClass::slaveRefresh(PacketHandler *P) { + // not unless we are slave + if (!::arg().mustDo("slave")) return; + UeberBackend *B=P->getBackend(); vector rdomains; vector sdomains; // the bool is for 'presigned' -- 2.40.0