From fdc0adafa7ebe916f20793c30de86f1524029a3c Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Wed, 18 Jun 2014 19:49:47 +0200 Subject: [PATCH] pdnssec: check-all-zones detect zones without SOA record, and check all records in a zone (including disabled ones) --- pdns/pdnssec.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 0e5e290a5..9379461d7 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -355,11 +355,12 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) SOAData sd; sd.db=(DNSBackend*)-1; if(!B.getSOA(zone, sd)) { - cout<<"No SOA for zone '"<list(zone, sd.domain_id); + sd.db->list(zone, sd.domain_id, true); DNSResourceRecord rr; uint64_t numrecords=0, numerrors=0, numwarnings=0; @@ -549,7 +550,7 @@ int checkAllZones(DNSSECKeeper &dk) UeberBackend B("default"); vector domainInfo; - B.getAllDomains(&domainInfo); + B.getAllDomains(&domainInfo, true); int errors=0; BOOST_FOREACH(DomainInfo di, domainInfo) { if (checkZone(dk, B, di.zone) > 0) -- 2.40.0