From 07e3cfb64d8194d5136503f4f57297f9786d857d Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Thu, 20 Apr 2017 17:47:52 +0200 Subject: [PATCH] rec: Make sure the received SOA comes from a "." auth --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index 6d49dbf740..d9d09c1023 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1235,7 +1235,7 @@ bool SyncRes::processRecords(const std::string& prefix, const DNSName& qname, co ne.d_auth = rec.d_name; harvestNXRecords(lwr.d_records, ne); t_sstorage->negcache.add(ne); - if(s_rootNXTrust && ne.d_auth.isRoot()) { // We should check if it was forwarded here, see issue #5107 + if(s_rootNXTrust && ne.d_auth.isRoot() && auth.isRoot()) { ne.d_name = ne.d_name.getLastLabel(); t_sstorage->negcache.add(ne); } -- 2.47.2