void showZone(DNSSECKeeper& dk, const std::string& zone)
{
if(!dk.isSecuredZone(zone)) {
- cerr<<"Zone is not secured\n";
- return;
+ cerr<<"Zone is not actively secured\n";
}
NSEC3PARAMRecordContent ns3pr;
bool narrow;
bool haveNSEC3=dk.getNSEC3PARAM(zone, &ns3pr, &narrow);
- if(!haveNSEC3)
- cout<<"Zone has NSEC semantics"<<endl;
- else
- cout<<"Zone has " << (narrow ? "NARROW " : "") <<"hashed NSEC3 semantics, configuration: "<<ns3pr.getZoneRepresentation()<<endl;
+ DNSSECKeeper::keyset_t keyset=dk.getKeys(zone);
- cout <<"Zone is " << (dk.isPresigned(zone) ? "" : "not ") << "presigned\n";
- DNSSECKeeper::keyset_t keyset=dk.getKeys(zone);
+ cout <<"Zone is " << (dk.isPresigned(zone) ? "" : "not ") << "presigned\n";
if(keyset.empty()) {
cerr << "No keys for zone '"<<zone<<"'."<<endl;
}
else {
+ if(!haveNSEC3)
+ cout<<"Zone has NSEC semantics"<<endl;
+ else
+ cout<<"Zone has " << (narrow ? "NARROW " : "") <<"hashed NSEC3 semantics, configuration: "<<ns3pr.getZoneRepresentation()<<endl;
+
cout << "keys: "<<endl;
BOOST_FOREACH(DNSSECKeeper::keyset_t::value_type value, keyset) {
cout<<"ID = "<<value.second.id<<" ("<<(value.second.keyOrZone ? "KSK" : "ZSK")<<"), tag = "<<value.first.getDNSKEY().getTag();