From: Pieter Lexis Date: Sat, 13 May 2017 09:35:38 +0000 (+0200) Subject: Merge pull request #5263 from fobser/notify-after-dnsupdate X-Git-Tag: rec-4.1.0-alpha1~122 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84de37411197425ba0becc6394e25831e540199a;p=thirdparty%2Fpdns.git Merge pull request #5263 from fobser/notify-after-dnsupdate notify slaves after dnsupdate was processed --- 84de37411197425ba0becc6394e25831e540199a diff --cc pdns/rfc2136handler.cc index dfe16b90f2,0c573c8970..3cb8916baa --- a/pdns/rfc2136handler.cc +++ b/pdns/rfc2136handler.cc @@@ -970,16 -970,9 +972,18 @@@ int PacketHandler::processUpdate(DNSPac zone.append("$"); purgeAuthCaches(zone); + // Notify slaves + if (di.kind == DomainInfo::Master) { + vector notify; + B.getDomainMetadata(p->qdomain, "NOTIFY-DNSUPDATE", notify); + if (!notify.empty() && notify.front() == "1") { + Communicator.notifyDomain(di.zone); + } + } + L<