bool doReferral = true;
if(d_dk.doesDNSSEC()) {
for(auto& loopRR: rrset) {
+ // In a dnssec capable backend auth=true means, there is no delagation at
+ // or above this qname in this zone (for DS queries). Without a delegation,
+ // at or above this level, it is pointless to search for refferals.
if(loopRR.auth) {
doReferral = false;
break;
}
} else {
for(auto& loopRR: rrset) {
+ // In a non dnssec capable backend auth is always true, so our only option
+ // is, always look for referals. Unless there is a direct match for DS.
if(loopRR.dr.d_type == QType::DS) {
doReferral = false;
break;