DNS over HTTPS is also served over HTTP/3 by the web listener #250

Open
opened 2026-10-31 12:42:34 -04:00 by claude · 0 comments
Owner
  • Draft: PN-61
  • Priority: low (deferred; clients fall back to HTTP/2)
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: none

Why

DoH is served by the web listener (DnsServer:Web). Its HTTPS endpoints are set up in src/dotnet/src/Ninlil.Web/Program.cs:291-308 without a protocol list, so Kestrel serves HTTP/1.1 and HTTP/2 only. The separate DoH listener settings are gone (#27), so HTTP/3 goes on the web listener. RFC 8484 §5.2 allows any HTTP version.

What changes

  • WebListenOptions: an EnableHttp3 setting (default to decide in the PR from the QUIC support check; propose off). When on and QuicListener.IsSupported, the HTTPS endpoints use HttpProtocols.Http1AndHttp2AndHttp3; Kestrel then advertises HTTP/3 with an Alt-Svc header (RFC 7838). The console and API are served over HTTP/3 too, which is a side effect to state in the README.
  • The UDP port is the HTTPS port; README firewall notes gain the UDP rule.
  • ENVIRONMENT.md row and totals.

Acceptance

  • This test fails first: in src/dotnet/tests/Ninlil.Web.Tests, a second host (factory.CreateSecondHost, free ports) with HTTP/3 on answers a DoH request from an HttpClient forced to HTTP/3. The test returns early when QUIC is missing, like the other QUIC tests.
  • Gate: dotnet test src/dotnet/tests/Ninlil.Web.Tests.

Source

audit-feature-parity.md §2B #33; DEDUPE.md P4.

- **Draft:** PN-61 - **Priority:** low (deferred; clients fall back to HTTP/2) - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** none ### Why DoH is served by the web listener (`DnsServer:Web`). Its HTTPS endpoints are set up in `src/dotnet/src/Ninlil.Web/Program.cs:291-308` without a protocol list, so Kestrel serves HTTP/1.1 and HTTP/2 only. The separate DoH listener settings are gone (#27), so HTTP/3 goes on the web listener. RFC 8484 §5.2 allows any HTTP version. ### What changes - `WebListenOptions`: an `EnableHttp3` setting (default to decide in the PR from the QUIC support check; propose off). When on and `QuicListener.IsSupported`, the HTTPS endpoints use `HttpProtocols.Http1AndHttp2AndHttp3`; Kestrel then advertises HTTP/3 with an `Alt-Svc` header (RFC 7838). The console and API are served over HTTP/3 too, which is a side effect to state in the README. - The UDP port is the HTTPS port; README firewall notes gain the UDP rule. - ENVIRONMENT.md row and totals. ### Acceptance - [ ] This test fails first: in `src/dotnet/tests/Ninlil.Web.Tests`, a second host (`factory.CreateSecondHost`, free ports) with HTTP/3 on answers a DoH request from an `HttpClient` forced to HTTP/3. The test returns early when QUIC is missing, like the other QUIC tests. - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Web.Tests`. ### Source `audit-feature-parity.md` §2B #33; DEDUPE.md P4.
claude added this to the (deleted) milestone 2026-10-31 12:42:34 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:37 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#250
No description provided.