From: Aki Tuomi Date: Tue, 25 Aug 2015 03:51:01 +0000 (+0300) Subject: Do not check slave domain freshness unless slave=yes X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~62^2~13^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2704%2Fhead;p=thirdparty%2Fpdns.git 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. --- diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 8de367f1c8..b0f0273b5d 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'