From: Ruben d'Arco Date: Tue, 6 Nov 2012 20:52:18 +0000 (+0100) Subject: Add delete-zone to pdnssec. X-Git-Tag: rec-3.6.0-rc1~147^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=51f6bca1349c374f2231fd2e1639444f277c7c90;p=thirdparty%2Fpdns.git Add delete-zone to pdnssec. --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 7165404df6..a63b2dec51 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -624,6 +624,21 @@ int increaseSerial(const string& zone, DNSSECKeeper &dk) return 0; } +int deleteZone(const string &zone) { + UeberBackend B; + DomainInfo di; + if (! B.getDomainInfo(zone, di)) { + cerr<<"Domain '"<deleteDomain(zone)) + return 0; + + cerr<<"Failed to delete domain '"+zone+"'"<