]> granicus.if.org Git - pdns/commitdiff
address ticket 353 - lua generated incoming AXFR records weren't 'ordered' for DNSSEC.
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 19 Apr 2011 12:27:39 +0000 (12:27 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 19 Apr 2011 12:27:39 +0000 (12:27 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2174 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/slavecommunicator.cc

index 5370131606b0d428103b3078cd48fc31f7fcf8a8..83aeefa0c534fc518a94d7f0d030653275ded9ac 100644 (file)
@@ -165,6 +165,10 @@ void CommunicatorClass::suck(const string &domain,const string &remote)
         if(pdl && pdl->axfrfilter(raddr, domain, *i, out)) {
           BOOST_FOREACH(const DNSResourceRecord& rr, out) {
             di.backend->feedRecord(rr);
+            if(rr.qtype.getCode() == QType::NS && !pdns_iequals(rr.qname, domain)) 
+              nsset.insert(rr.qname);
+            if(rr.qtype.getCode() != QType::RRSIG) // this excludes us hashing RRSIGs for NSEC(3)
+              qnames.insert(rr.qname);
           }
         }
         else {