zone.append("$");
purgeAuthCaches(zone);
+ // Notify slaves
+ if (di.kind == DomainInfo::Master) {
+ vector<string> notify;
+ B.getDomainMetadata(p->qdomain, "NOTIFY-DNSUPDATE", notify);
+ if (!notify.empty() && notify.front() == "1") {
+ Communicator.notifyDomain(di.zone);
+ }
+ }
+
L<<Logger::Info<<msgPrefix<<"Update completed, "<<changedRecords<<" changed records committed."<<endl;
+ if(::arg().mustDo("master") || ::arg().mustDo("slave-renotify"))
+ Communicator.notifyDomain(di.zone);
} else {
//No change, no commit, we perform abort() because some backends might like this more.
L<<Logger::Info<<msgPrefix<<"Update completed, 0 changes, rolling back."<<endl;