::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";
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;
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;
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")));