Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pdnssec check-zone, warn if parsed and original content are not equal
  • Loading branch information
mind04 committed Nov 22, 2013
1 parent 3191709 commit bcf9daf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pdns/pdnssec.cc
Expand Up @@ -460,6 +460,11 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone)
try {
shared_ptr<DNSRecordContent> 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: "<<rr.qname<<" IN " <<rr.qtype.getName()<< " '" << rr.content<<"' (Content parsed as '"<<tmp<<"')"<<endl;
numwarnings++;
}
}
catch(std::exception& e)
{
Expand Down

0 comments on commit bcf9daf

Please sign in to comment.