From 53be802dbe13a954104dbe3e5b610d27e986ad41 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Sun, 4 Jun 2017 13:31:54 +0200 Subject: [PATCH] auth: make sure Lua axfrfilter() does not insert out of zone data --- pdns/slavecommunicator.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pdns/slavecommunicator.cc b/pdns/slavecommunicator.cc index 72f716887..0f854d27e 100644 --- a/pdns/slavecommunicator.cc +++ b/pdns/slavecommunicator.cc @@ -262,6 +262,10 @@ vector doAxfr(const ComboAddress& raddr, const DNSName& domai } for(DNSResourceRecord& rr : out) { + if(!rr.qname.isPartOf(domain)) { + L<qname<<"'|"<qtype.getName()<<" during AXFR of zone '"<