From: bert hubert Date: Sat, 30 Jan 2016 15:14:14 +0000 (+0100) Subject: improve up some pdnsutil output, make show-zone list domain metadata X-Git-Tag: dnsdist-1.0.0-alpha2~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5911b05174e61c65881f9f8497cc4e1ae526d4eb;p=thirdparty%2Fpdns.git improve up some pdnsutil output, make show-zone list domain metadata --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index 762335d855..572697feee 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -241,7 +241,7 @@ bool rectifyZone(DNSSECKeeper& dk, const DNSName& zone) cerr<<"Erasing NSEC3 ordering since we are narrow, only setting 'auth' fields"<startTransaction(zone, -1); @@ -1468,7 +1468,7 @@ bool showZone(DNSSECKeeper& dk, const DNSName& zone) } if(!dk.isSecuredZone(zone)) { - cerr<<"Zone is not actively secured"< 0) { - cerr << "Zone has following allowed TSIG key(s): " << boost::join(meta, ",") << endl; + cout << "Zone has following allowed TSIG key(s): " << boost::join(meta, ",") << endl; } meta.clear(); if (B.getDomainMetadata(zone, "AXFR-MASTER-TSIG", meta) && meta.size() > 0) { - cerr << "Zone uses following TSIG key(s): " << boost::join(meta, ",") << endl; + cout << "Zone uses following TSIG key(s): " << boost::join(meta, ",") << endl; } + std::map > metamap; + if(B.getAllDomainMetadata(zone, metamap)) { + cout<<"Meta data items: "<