From c79addc08987c5575ad5a592109c7c3f470d9818 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Thu, 30 Apr 2015 00:52:21 +0200 Subject: [PATCH] import pdnssec checkZone() from master --- pdns/pdnssec.cc | 47 +++++++++++++++++++++++++++-------------------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index f3d36fa12d9a..8bda743303c2 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -350,10 +350,19 @@ 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); DNSResourceRecord rr; uint64_t numrecords=0, numerrors=0, numwarnings=0; @@ -396,20 +405,14 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) if (rr.qtype.getCode() != QType::AAAA) { if (!pdns_iequals(tmp, rr.content)) { cout<<"[Warning] Parsed and original record content are not equal: "<(toLower(content.str()), rr.ttl)); if (ret.second == false && ret.first->second != rr.ttl) { cout<<"[Error] TTL mismatch in rrset: '"<second<<" != "<