pdns icon indicating copy to clipboard operation
pdns copied to clipboard

Support for RFC9606 RRType 261 (RESINFO)

Open mdavids opened this issue 1 year ago • 3 comments

  • Program: dnsdist
  • Issue type: Feature request

Short description

RFC9606 introduces a new RRtype 'RESINFO'. It would be nice if that could be used with 'DNSQType'.

Usecase

Implement RFC9606 support for our public resolver. The RFC says: "DNS client MUST set the Recursion Desired (RD) bit of the query to 0. The DNS client MUST discard the response if the AA flag in the response is set to 0", which implicates that just adding RESINFO-records to a zone file is not the way to go (see https://marc.info/?l=openbsd-tech&m=173368282507730&w=2).

With a Luarule this could however be done, when the RRType is supported in the 'DNSQtype'-function. Looking at the source code, this is not the case yet.

Description

Simply extend the list of RRtypes with RESINFO.

mdavids avatar Dec 17 '24 13:12 mdavids

Makes sense to me! Note that you should be able to use the numerical value in most places in the meantime.

rgacogne avatar Dec 17 '24 14:12 rgacogne

Makes sense to me! Note that you should be able to use the numerical value in most places in the meantime.

Please enlighten me; how would that work? It's not DNSQType.261, is it?

mdavids avatar Dec 18 '24 10:12 mdavids

[QTypeRule(qtype)](https://dnsdist.org/reference/selectors.html?highlight=qtyperule#QTypeRule) says it taks an int, so e.g. QTypeRule(261) should do it.

omoerbeek avatar Dec 18 '24 10:12 omoerbeek