QType qtnull(0);
DNSName authname(qname);
- bool wasForwardedOrAuth = (getBestAuthZone(&authname) != t_sstorage->domainmap->end());
+ bool wasForwardedOrAuth = false;
+ bool wasAuth = false;
+ domainmap_t::const_iterator iter=getBestAuthZone(&authname);
+ if(iter != t_sstorage->domainmap->end()) {
+ wasForwardedOrAuth = true;
+ const vector<ComboAddress>& servers = iter->second.d_servers;
+ if(servers.empty()) {
+ wasAuth = true;
+ }
+ }
if(s_rootNXTrust &&
(range.first=t_sstorage->negcache.find(tie(getLastLabel(qname), qtnull))) != t_sstorage->negcache.end() &&
if(found && !expired) {
if(!giveNegative)
res=0;
+ d_wasOutOfBand = wasAuth;
return true;
}
else