From: Kees Monshouwer Date: Tue, 21 May 2013 22:21:29 +0000 (+0200) Subject: add secure-all-zones command to pdnssec X-Git-Tag: rec-3.6.0-rc1~28^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1368%2Fhead;p=thirdparty%2Fpdns.git add secure-all-zones command to pdnssec --- diff --git a/pdns/docs/pdns.xml b/pdns/docs/pdns.xml index 7b15a0552d..9c8d94132c 100644 --- a/pdns/docs/pdns.xml +++ b/pdns/docs/pdns.xml @@ -13104,6 +13104,14 @@ $ pdnssec rectify-zone powerdnssec.org + + secure-all-zones + + + Add keymaterial to all zones. You should manually run 'rectify-all-zones' afterwards. + + + set-nsec3 ZONE 'parameters' [narrow] @@ -16217,7 +16225,7 @@ To enable a Lua script for a particular slave zone, determine the domain_id for disable-axfr-rectify=... Disable the rectify step during an outgoing AXFR. Only required for regression testing. - Default is no."/>. + Default is no. disable-tcp=... diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 2f4affd3b5..c2cd0b826f 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -1126,6 +1126,7 @@ try cerr<<"rectify-zone ZONE [ZONE ..] Fix up DNSSEC fields (order, auth)"< domainInfo; + B.getAllDomains(&domainInfo); + + dk.startTransaction(); + BOOST_FOREACH(DomainInfo di, domainInfo) { + if(!dk.isSecuredZone(di.zone)) { + cout<<"Securing "<