From ec7849d425070a5c31d3ae7ebcae23864285cf04 Mon Sep 17 00:00:00 2001 From: alebeta90 Date: Tue, 18 Dec 2018 16:57:42 +0100 Subject: [PATCH] pdns_control notify * also notify slaves zones pdns_control notify * also notify slaves zones when slave-renotify option is enabled --- pdns/dynhandler.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 { -- 2.40.0