From: Peter van Dijk Date: Wed, 3 Oct 2012 20:41:52 +0000 (+0000) Subject: Ignore ent in pdnssec check-zone and fix SOA check (Kees Monshouwer) X-Git-Tag: auth-3.2-rc1~137 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c13544c3d03a74104a018218bb4e68e4dfa3f01;p=thirdparty%2Fpdns.git Ignore ent in pdnssec check-zone and fix SOA check (Kees Monshouwer) git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2745 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 09367e7c60..3f4a7fc1af 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -273,6 +273,15 @@ int checkZone(DNSSECKeeper& dk, const std::string& zone) uint64_t numrecords=0, numerrors=0; while(sd.db->get(rr)) { + if(!rr.qtype.getCode()) + continue; + + if(rr.qtype.getCode() == QType::SOA) + { + fillSOAData(rr.content, sd); + rr.content = serializeSOAData(sd); + } + if(rr.qtype.getCode() == QType::URL || rr.qtype.getCode() == QType::MBOXFW) { cout<<"The recordtype "<