]> granicus.if.org Git - pdns/commitdiff
pdns_control notify * also notify slaves zones
authoralebeta90 <alebeta@gonkar.com>
Tue, 18 Dec 2018 15:57:42 +0000 (16:57 +0100)
committerGitHub <noreply@github.com>
Tue, 18 Dec 2018 15:57:42 +0000 (16:57 +0100)
pdns_control notify * also notify slaves zones when slave-renotify option is enabled

pdns/dynhandler.cc

index b03b0a36054675c2ab08f62afec3ad572f76b282..3eaa9e940f7ab294d9bbbae266593b62dc5c1379 100644 (file)
@@ -300,7 +300,7 @@ string DLNotifyHandler(const vector<string>&parts, Utility::pid_t ppid)
     int total = 0;
     int notified = 0;
     for (vector<DomainInfo>::const_iterator di=domains.begin(); di != domains.end(); di++) {
-      if (di->kind == 0) { // MASTER
+      if (di->kind == 0 || di->kind == 1) { // MASTER and Slave if slave-renotify is enabled
         total++;
         if(Communicator.notifyDomain(di->zone))
           notified++;
@@ -309,7 +309,7 @@ string DLNotifyHandler(const vector<string>&parts, Utility::pid_t ppid)
 
     if (total != notified)
       return itoa(notified)+" out of "+itoa(total)+" zones added to queue - see log";
-    return "Added "+itoa(total)+" MASTER zones to queue";
+    return "Added "+itoa(total)+" MASTER/SLAVE zones to queue";
   } else {
     DNSName domain;
     try {