From 54313dbc5b9e61702bc07519dd673241a235c9c3 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Mon, 13 Jul 2015 15:39:08 +0200 Subject: [PATCH] Fix the resolver so auth-zones work again --- pdns/syncres.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/syncres.cc b/pdns/syncres.cc index d51e4c738..19b32741b 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 -- 2.40.0