From a6230867a88424e8caa5786eb454c8f4bfd2e5d2 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sun, 29 Sep 2013 19:11:32 +0200 Subject: [PATCH] pdnssec check-zone, fix record counting and improve out of zone check --- pdns/pdnssec.cc | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index d4e4714bb..365a30ee0 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -354,11 +354,7 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) if(!rr.qtype.getCode()) continue; - if(!endsOn(rr.qname, zone)) { - cout<<"[Warning] Record '"<parts; @@ -396,6 +392,12 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) continue; } + if(!endsOn(rr.qname, zone)) { + cout<<"[Warning] Record '"<::const_iterator i = cnames.begin(); i != cnames.end(); i++) { -- 2.50.1