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: rec-3.6.0-rc1~430^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d6d105120ad7bbb326dfcb6c602ddc5b3ac7416c;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 8769c23400..6cfc259a18 100644 --- a/pdns/pdnssec.cc +++ b/pdns/pdnssec.cc @@ -463,6 +463,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: "<