Permalink
Browse files

pdnssec: fix ttl ceck for RRSIG records

  • Loading branch information...
1 parent 98d3003 commit fa52e029b05d12f7b42227e4348d2ff9fe76e657 @mind04 mind04 committed with mind04 Jan 6, 2015
Showing with 4 additions and 0 deletions.
  1. +4 −0 pdns/pdnssec.cc
View
@@ -483,6 +483,10 @@ int checkZone(DNSSECKeeper &dk, UeberBackend &B, const std::string& zone)
content.str("");
content<<rr.qname<<" "<<rr.qtype.getName();
+ if (rr.qtype.getCode() == QType::RRSIG) {
+ RRSIGRecordContent rrc(rr.content);
+ content<<" ("<<DNSRecordContent::NumberToType(rrc.d_type)<<")";
+ }
ret = ttl.insert(pair<string, unsigned int>(toLower(content.str()), rr.ttl));
if (ret.second == false && ret.first->second != rr.ttl) {
cout<<"[Error] TTL mismatch in rrset: '"<<rr.qname<<" IN " <<rr.qtype.getName()<<" "<<rr.content<<"' ("<<ret.first->second<<" != "<<rr.ttl<<")"<<endl;

0 comments on commit fa52e02

Please sign in to comment.