ostringstream os;
if(parts.size()!=3)
return "syntax: notify-host domain ip";
- if(!::arg().mustDo("master") && !::arg().mustDo("slave-renotify"))
+ if(!::arg().mustDo("master") && !(::arg().mustDo("slave") && ::arg().mustDo("slave-renotify")))
return "PowerDNS not configured as master or slave with re-notifications";
DNSName domain;
UeberBackend B;
if(parts.size()!=2)
return "syntax: notify domain";
- if(!::arg().mustDo("master") && !::arg().mustDo("slave-renotify"))
+ if(!::arg().mustDo("master") && !(::arg().mustDo("slave") && ::arg().mustDo("slave-renotify")))
return "PowerDNS not configured as master or slave with re-notifications";
L<<Logger::Warning<<"Notification request for domain '"<<parts[1]<<"' received from operator"<<endl;