From d6d105120ad7bbb326dfcb6c602ddc5b3ac7416c Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sun, 29 Sep 2013 13:11:29 +0200 Subject: [PATCH] pdnssec check-zone, warn if parsed and original content are not equal --- pdns/pdnssec.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pdns/pdnssec.cc b/pdns/pdnssec.cc index 8769c2340..6cfc259a1 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: "<