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: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F3605%2Fhead;p=thirdparty%2Fpdns.git Improve trace messages for auth and forward zones --- 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()<