for(const auto& r : recvec) {
rr.dr.d_type = rec->d_type; // might be CNAME
rr.dr.d_content = r;
- rr.scopeMask = 32; // XXX or 128 - needs to disable cache in any case
+ rr.scopeMask = p->getRealRemote().getBits(); // this makes sure answer is a specific as your question
ret->push_back(rr);
}
}
for(const auto& r : recvec) {
rr.dr.d_type = rec->d_type; // might be CNAME
rr.dr.d_content = r;
- rr.scopeMask = 32;
+ rr.scopeMask = p->getRealRemote().getBits(); // this makes sure answer is a specific as your question
+
rrset.push_back(rr);
}
if(rec->d_type == QType::CNAME && p->qtype.getCode() != QType::CNAME)