From: alebeta90 Date: Tue, 18 Dec 2018 15:57:42 +0000 (+0100) Subject: pdns_control notify * also notify slaves zones X-Git-Tag: rec-4.2.0-alpha1~44^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec7849d425070a5c31d3ae7ebcae23864285cf04;p=pdns pdns_control notify * also notify slaves zones pdns_control notify * also notify slaves zones when slave-renotify option is enabled --- diff --git a/pdns/dynhandler.cc b/pdns/dynhandler.cc index b03b0a360..3eaa9e940 100644 --- a/pdns/dynhandler.cc +++ b/pdns/dynhandler.cc @@ -300,7 +300,7 @@ string DLNotifyHandler(const vector&parts, Utility::pid_t ppid) int total = 0; int notified = 0; for (vector::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&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 {