fix: we need flag ad and rd on the dns query. rd is to request recursive lookup and ad is to ensure we only get DNSSEC responses

This commit is contained in:
Derrick Hammer 2023-08-04 11:34:42 -04:00
parent 1a803193e6
commit 67025f0f68
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 0 deletions

View File

@ -225,8 +225,12 @@ async function handleDnsQuery(aq: ActiveQuery) {
const msg = new wire.Message();
const q = new wire.Question(aq.callerInput.fqdn, aq.callerInput.type);
msg.question.push(q);
msg.rd = true;
msg.ad = true;
const ret = await node.rs.answer(msg);
if (!ret.ad) {