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:
parent
1a803193e6
commit
67025f0f68
|
@ -225,8 +225,12 @@ async function handleDnsQuery(aq: ActiveQuery) {
|
||||||
|
|
||||||
const msg = new wire.Message();
|
const msg = new wire.Message();
|
||||||
const q = new wire.Question(aq.callerInput.fqdn, aq.callerInput.type);
|
const q = new wire.Question(aq.callerInput.fqdn, aq.callerInput.type);
|
||||||
|
|
||||||
msg.question.push(q);
|
msg.question.push(q);
|
||||||
|
|
||||||
|
msg.rd = true;
|
||||||
|
msg.ad = true;
|
||||||
|
|
||||||
const ret = await node.rs.answer(msg);
|
const ret = await node.rs.answer(msg);
|
||||||
|
|
||||||
if (!ret.ad) {
|
if (!ret.ad) {
|
||||||
|
|
Loading…
Reference in New Issue