]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rename secondary-renotify to secondary-do-renotify
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 20 Jan 2021 11:55:16 +0000 (12:55 +0100)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 31 Mar 2021 10:46:24 +0000 (12:46 +0200)
pdns/common_startup.cc
pdns/dynhandler.cc
pdns/receiver.cc

index 3635a66615b64c247ccaf019b0a20077a155e6bf..b1004694074d8b3099ac99357d5054b577356118 100644 (file)
@@ -189,7 +189,7 @@ void declareArguments()
 
   ::arg().set("trusted-notification-proxy", "IP address of incoming notification proxy")="";
   ::arg().set("slave-renotify", "If we should send out notifications for secondaried updates")="no";
-  ::arg().set("secondary-renotify", "If we should send out notifications for secondaried updates")="no";
+  ::arg().set("secondary-do-renotify", "If this secondary should send out notifications after receiving zone transfers from a primary")="no";
   ::arg().set("forward-notify", "IP addresses to forward received notifications to regardless of master or slave settings")="";
 
   ::arg().set("default-ttl","Seconds a result is valid if not set otherwise")="3600";
index d78f38ccc1b4af63fa1843e50716265a9d2f496b..76cb927fc4ddb7ce64ac3d789ebdd61c432e2840 100644 (file)
@@ -289,7 +289,7 @@ string DLNotifyHostHandler(const vector<string>&parts, Utility::pid_t ppid)
   ostringstream os;
   if(parts.size()!=3)
     return "syntax: notify-host domain ip";
-  if(!::arg().mustDo("primary") && !(::arg().mustDo("secondary") && ::arg().mustDo("secondary-renotify")))
+  if(!::arg().mustDo("primary") && !(::arg().mustDo("secondary") && ::arg().mustDo("secondary-do-renotify")))
       return "PowerDNS not configured as primary (master), or secondary (slave) with re-notifications";
 
   DNSName domain;
@@ -317,7 +317,7 @@ string DLNotifyHandler(const vector<string>&parts, Utility::pid_t ppid)
   UeberBackend B;
   if(parts.size()!=2)
     return "syntax: notify domain";
-  if(!::arg().mustDo("primary") && !(::arg().mustDo("secondary") && ::arg().mustDo("secondary-renotify")))
+  if(!::arg().mustDo("primary") && !(::arg().mustDo("secondary") && ::arg().mustDo("secondary-do-renotify")))
       return "PowerDNS not configured as primary (master), or secondary (slave) with re-notifications";
   g_log<<Logger::Warning<<"Notification request for domain '"<<parts[1]<<"' received from operator"<<endl;
 
index 8d1d461e87b06e36a6b9d17c58fc6e8f1cfc25be..268713d543946ed2e02e49e010753cf4f905fac5 100644 (file)
@@ -429,13 +429,13 @@ int main(int argc, char **argv)
 
     if (::arg().mustDo("master")) ::arg().set("primary")="yes";
     if (::arg().mustDo("slave")) ::arg().set("secondary")="yes";
-    if (::arg().mustDo("slave-renotify")) ::arg().set("secondary-renotify")="yes";
+    if (::arg().mustDo("slave-renotify")) ::arg().set("secondary-do-renotify")="yes";
     if (::arg().mustDo("superslave")) ::arg().set("autosecondary")="yes";
 
     // this mirroring back is on purpose, so that config dumps reflect the actual setting on both names
     if (::arg().mustDo("primary")) ::arg().set("master")="yes";
     if (::arg().mustDo("secondary")) ::arg().set("slave")="yes";
-    if (::arg().mustDo("secondary-renotify")) ::arg().set("slave-renotify")="yes";
+    if (::arg().mustDo("secondary-do-renotify")) ::arg().set("slave-renotify")="yes";
     if (::arg().mustDo("autosecondary")) ::arg().set("superslave")="yes";
 
     g_log.setLoglevel((Logger::Urgency)(::arg().asNum("loglevel")));