From: Pieter Lexis Date: Mon, 21 Mar 2016 16:45:46 +0000 (+0100) Subject: Improve trace messages for auth and forward zones X-Git-Tag: dnsdist-1.0.0-beta1~73^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ad03d756307d05e631eee1eeb4013216d12a262;p=pdns Improve trace messages for auth and forward zones --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index caaf1058c..79665b64d 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()<