increase-serial *ZONE*
Increases the SOA-serial by 1. Uses SOA-EDIT.
list-keys [*ZONE*]
- List DNSSEC information for all keys or for *ZONE*.
+ List DNSSEC information for all keys or for *ZONE*. --verbose or -v will
+ also include the keys for disabled or empty zones.
list-all-zones:
- List all zone names.
+ List all active zone names. --verbose or -v will also include disabled
+ or empty zones.
list-zone *ZONE*
Show all records for *ZONE*.
load-zone *ZONE* *FILE*
static int listKeys(const string &zname, DNSSECKeeper& dk){
UeberBackend B("default");
- if (zname != "all") {
+ if (!zname.empty()) {
DomainInfo di;
if(!B.getDomainInfo(DNSName(zname), di)) {
cerr << "Zone "<<zname<<" not found."<<endl;
listKey(di, dk);
} else {
vector<DomainInfo> domainInfo;
- B.getAllDomains(&domainInfo);
+ B.getAllDomains(&domainInfo, g_verbose);
bool printHeader = true;
for (const auto& di : domainInfo) {
listKey(di, dk, printHeader);
UeberBackend B("default");
vector<DomainInfo> domains;
- B.getAllDomains(&domains, true);
+ B.getAllDomains(&domains, g_verbose);
int count = 0;
for (const auto& di: domains) {
cerr<<"Syntax: pdnsutil list-keys [ZONE]"<<endl;
return 0;
}
- string zname = (cmds.size() == 2) ? cmds[1] : "all";
+ string zname;
+ if (cmds.size() == 2) {
+ zname = cmds.at(1);
+ }
return listKeys(zname, dk);
}
else if(cmds[0] == "load-zone") {