From fa37777331785de83f8e926e41ff678f9a4d8494 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 22 May 2013 00:21:29 +0200 Subject: [PATCH] add secure-all-zones command to pdnssec --- pdns/docs/pdns.xml | 10 +++++++++- pdns/pdnssec.cc | 25 +++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) 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 "<