]> granicus.if.org Git - pdns/commitdiff
warn when securing a slave zone, suggested by Mark Scholten
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 11 Oct 2012 07:22:50 +0000 (07:22 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Thu, 11 Oct 2012 07:22:50 +0000 (07:22 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2795 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/pdnssec.cc

index 96947a2626d482886cf0e97ea65bd97e88b83501..eed3f6405b2d1e5a2f8162027c985eda42ba4fcb 100644 (file)
@@ -522,6 +522,12 @@ bool secureZone(DNSSECKeeper& dk, const std::string& zone)
     return false;
   }
 
+  if(di.kind == DomainInfo::Slave)
+  {
+    cout<<"Warning! This is a slave domain! If this was a mistake, please run"<<endl;
+    cout<<"pdnssec disable-dnssec "<<zone<<" right now!"<<endl;
+  }
+
   if(!dk.secureZone(zone, 8)) {
     cerr<<"No backend was able to secure '"<<zone<<"', most likely because no DNSSEC\n";
     cerr<<"capable backends are loaded, or because the backends have DNSSEC disabled.\n";