pdns icon indicating copy to clipboard operation
pdns copied to clipboard

dnsdist: Ponder support for ODoH target mode

Open johnhtodd opened this issue 3 years ago • 4 comments

  • Program: dnsdist
  • Issue type: Feature request

Short description

Oblivious DOH is looking more like it will be implemented in various operating systems and browsers. The proxy is outside the scope of dnsdist, but target mode certainly seems like a reasonable thing to include in dnsdist's DOH stack if it is standardized.

Usecase

It would be useful for any dnsdist instance that is able to accept and process DOH requests to also be able to accept and process ODOH requests if a client (and thus proxy) is sending queries to that dnsdist instance.

Description

This feature request is for consideration of ODOH. Depending on complexity of implementation, more discussion may be required. The draft for ODOH is still incomplete as of this ticket's generation (2021/08/17) but the intervals between ideas existing and being implemented "at scale" unilaterally by large corporate organizations seems to be getting shorter and shorter these days, doesn't it?

See also: https://datatracker.ietf.org/doc/html/draft-pauly-dprive-oblivious-doh-06

johnhtodd avatar Aug 18 '21 00:08 johnhtodd

I guess one of the first steps would be to find a good HPKE implementation that we could use, so either in C, C++, or with compatible bindings.

rgacogne avatar Aug 18 '21 08:08 rgacogne

HPKE RFC 9180 has been recently published (Feb 2022).

This github repo lists a few implementations: https://github.com/cfrg/draft-irtf-cfrg-hpke#existing-hpke-implementations

We are happy to help with testing ODoH code in dnsdist in the future.

appliedprivacy avatar Apr 03 '22 10:04 appliedprivacy

Interesting, thanks! Several entries on that list seem nice but have no release, and some are not even self-contained. It would be fun to try using zig-hpke from C++, as in theory it should work, and we have always been very happy with Frank's work :)

rgacogne avatar Apr 04 '22 13:04 rgacogne

RFC9230 ODoH has been published: https://www.rfc-editor.org/info/rfc9230

appliedprivacy avatar Jun 11 '22 19:06 appliedprivacy