From: Remi Gacogne Date: Fri, 2 Sep 2016 07:57:54 +0000 (+0200) Subject: rec: Ignore NS records in a RPZ zone received over IXFR X-Git-Tag: dnsdist-1.1.0-beta2~154^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed8c725224b5192367149897cfaaaf188ab0b910;p=pdns rec: Ignore NS records in a RPZ zone received over IXFR They are already ignored over AXFR, but not over IXFR. Reported and based on a patch by @42wim (thanks!). --- diff --git a/pdns/reczones.cc b/pdns/reczones.cc index 790118514..9df123ddf 100644 --- a/pdns/reczones.cc +++ b/pdns/reczones.cc @@ -347,6 +347,8 @@ void RPZIXFRTracker(const ComboAddress& master, const DNSName& zone, size_t polZ luaconfsCopy.dfe.clear(0); } for(const auto& rr : remove) { // should always contain the SOA + if(rr.d_type == QType::NS) + continue; totremove++; if(rr.d_type == QType::SOA) { auto oldsr = getRR(rr); @@ -363,6 +365,8 @@ void RPZIXFRTracker(const ComboAddress& master, const DNSName& zone, size_t polZ } for(const auto& rr : add) { // should always contain the new SOA + if(rr.d_type == QType::NS) + continue; totadd++; if(rr.d_type == QType::SOA) { auto newsr = getRR(rr);