From: Pieter Lexis Date: Mon, 13 Jul 2015 13:39:08 +0000 (+0200) Subject: Fix the resolver so auth-zones work again X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~57^2~3^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54313dbc5b9e61702bc07519dd673241a235c9c3;p=thirdparty%2Fpdns.git Fix the resolver so auth-zones work again --- diff --git a/pdns/syncres.cc b/pdns/syncres.cc index d51e4c7387..19b32741b7 100644 --- a/pdns/syncres.cc +++ b/pdns/syncres.cc @@ -624,7 +624,7 @@ DNSName SyncRes::getBestNSNamesFromCache(const DNSName &qname, const QType& qtyp domainmap_t::const_iterator iter=getBestAuthZone(&authdomain); if(iter!=t_sstorage->domainmap->end()) { if( iter->second.d_servers.empty() ) - nsset.insert(string()); // this gets picked up in doResolveAt, if empty it means "we are auth", otherwise it denotes a forward + nsset.insert(DNSName()); // this gets picked up in doResolveAt, if empty it means "we are auth", otherwise it denotes a forward else { for(vector::const_iterator server=iter->second.d_servers.begin(); server != iter->second.d_servers.end(); ++server) nsset.insert((iter->second.d_rdForward ? "+" : "-") + server->toStringWithPort()); // add a '+' if the rd bit should be set