]> granicus.if.org Git - pdns/commitdiff
pdnssec: fix ttl ceck for RRSIG records
authorKees Monshouwer <mind04@monshouwer.org>
Tue, 6 Jan 2015 21:46:23 +0000 (22:46 +0100)
committermind04 <mind04@monshouwer.org>
Tue, 6 Jan 2015 21:46:23 +0000 (22:46 +0100)
pdns/pdnssec.cc

index a1fab332b879f5ac7c6e753d021ec5812e50b80d..96ef05bdb498216dd50ac9c21225e1036d3e797f 100644 (file)
@@ -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;