From aef133dfbc97671fa598b8c0dac307ebb96c2b5e Mon Sep 17 00:00:00 2001 From: Klaus Darilion Date: Tue, 5 Apr 2016 07:15:46 +0000 Subject: [PATCH] fix: also slaves may send NOTIFYs if slave-renotify is enabled --- pdns/dynhandler.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pdns/dynhandler.cc b/pdns/dynhandler.cc index 1356b28ba6..3e2d5fbd41 100644 --- a/pdns/dynhandler.cc +++ b/pdns/dynhandler.cc @@ -261,8 +261,8 @@ string DLNotifyHostHandler(const vector&parts, Utility::pid_t ppid) ostringstream os; if(parts.size()!=3) return "syntax: notify-host domain ip"; - if(!::arg().mustDo("master")) - return "PowerDNS not configured as master"; + if(!::arg().mustDo("master") && !::arg().mustDo("slave-renotify")) + return "PowerDNS not configured as master or slave with re-notifications"; DNSName domain; try { @@ -289,8 +289,8 @@ string DLNotifyHandler(const vector&parts, Utility::pid_t ppid) UeberBackend B; if(parts.size()!=2) return "syntax: notify domain"; - if(!::arg().mustDo("master")) - return "PowerDNS not configured as master"; + if(!::arg().mustDo("master") && !::arg().mustDo("slave-renotify")) + return "PowerDNS not configured as master or slave with re-notifications"; L<