From: Kees Monshouwer Date: Sun, 29 Sep 2013 11:11:29 +0000 (+0200) Subject: pdnssec check-zone, warn if parsed and original content are not equal X-Git-Tag: auth-3.3.1~34^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf9daf3b7041de0898f2943977ca372ee3dee7a;p=thirdparty%2Fpdns.git pdnssec check-zone, warn if parsed and original content are not equal --- diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 147b61d3d9..52e6bb24a1 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -460,6 +460,11 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone) try { shared_ptr drc(DNSRecordContent::mastermake(rr.qtype.getCode(), 1, rr.content)); string tmp=drc->serialize(rr.qname); + tmp = drc->getZoneRepresentation(); + if (!pdns_iequals(tmp, rr.content)) { + cout<<"[Warning] Parsed and original record content are not equal: "<