#include "resolver.hh"
#include "dns_random.hh"
#include "backends/gsql/ssql.hh"
+#include "communicator.hh"
extern StatBag S;
+extern CommunicatorClass Communicator;
pthread_mutex_t PacketHandler::s_rfc2136lock=PTHREAD_MUTEX_INITIALIZER;
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;
} else {
//No change, no commit, we perform abort() because some backends might like this more.