From: Klaus Darilion Date: Tue, 5 Apr 2016 07:15:46 +0000 (+0000) Subject: fix: also slaves may send NOTIFYs if slave-renotify is enabled X-Git-Tag: rec-4.0.0-alpha3~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aef133dfbc97671fa598b8c0dac307ebb96c2b5e;p=thirdparty%2Fpdns.git fix: also slaves may send NOTIFYs if slave-renotify is enabled --- 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<