From 3ad03d756307d05e631eee1eeb4013216d12a262 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 21 Mar 2016 17:45:46 +0100 Subject: [PATCH] Improve trace messages for auth and forward zones --- pdns/syncres.cc | 41 ++++++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index caaf1058c9..79665b64da 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -1169,22 +1169,6 @@ int SyncRes::doResolveAt(NsSet &nameservers, DNSName auth, bool flawedNSSet, con continue; } - // Check if we are authoritative for a zone in this answer - if (!t_sstorage->domainmap->empty()) { - DNSName tmp_qname(rec.d_name); - auto auth_domain_iter=getBestAuthZone(&tmp_qname); - if(auth_domain_iter!=t_sstorage->domainmap->end()) { - if (auth_domain_iter->first != auth) { - LOG("NO! - we are authoritative for the zone "<first.toString()<domainmap->empty()) { + // Check if we are authoritative for a zone in this answer + DNSName tmp_qname(rec.d_name); + auto auth_domain_iter=getBestAuthZone(&tmp_qname); + if(auth_domain_iter!=t_sstorage->domainmap->end()) { + if (auth_domain_iter->first != auth) { + LOG("NO! - we are authoritative for the zone "<first.toString()<