DoT and DoQ clients can be identified by the TLS server name they connect to #239

Open
opened 2026-10-31 12:42:32 -04:00 by claude · 0 comments
Owner
  • Draft: PN-50
  • Priority: low (deferred; needs wildcard certificates)
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: none

Why

DoH has a {clientid} path. Ninlil.Dns.Protocol.DnsOverTls and .DnsOverQuic read no SNI (no ServerName/TargetHostName use).

What changes

Read the SNI from the TLS handshake (SslStream.TargetHostName, the QUIC connection's server name). Take the first label under a configured base name as a client identifier and pass it to IClientIdentityResolver the same way DoH does. Add options for both protocols and update ENVIRONMENT.md.

Acceptance

  • This test fails first: a real-socket DoT test with SNI kid1.dns.example resolves to the client registered as kid1.
  • Gate: dotnet test src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverTls.Tests, dotnet test src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverQuic.Tests.

Source

audit-feature-parity.md §2B #21.

- **Draft:** PN-50 - **Priority:** low (deferred; needs wildcard certificates) - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** none ### Why DoH has a `{clientid}` path. `Ninlil.Dns.Protocol.DnsOverTls` and `.DnsOverQuic` read no SNI (no `ServerName`/`TargetHostName` use). ### What changes Read the SNI from the TLS handshake (`SslStream.TargetHostName`, the QUIC connection's server name). Take the first label under a configured base name as a client identifier and pass it to `IClientIdentityResolver` the same way DoH does. Add options for both protocols and update ENVIRONMENT.md. ### Acceptance - [ ] This test fails first: a real-socket DoT test with SNI `kid1.dns.example` resolves to the client registered as `kid1`. - [ ] Gate: `dotnet test src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverTls.Tests`, `dotnet test src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverQuic.Tests`. ### Source `audit-feature-parity.md` §2B #21.
claude added this to the (deleted) milestone 2026-10-31 12:42:32 -04:00
claude removed this from the (deleted) milestone 2026-11-06 12:28:38 -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#239
No description provided.