Beta feature "DNS Payload Delivery" breaks Encrypted Client Hello (ECH) by stripping/truncating HTTPS records
Hi NextDNS team,
While troubleshooting why Encrypted Client Hello (ECH) stopped working with my NextDNS profile (tested via tls-ech.dev and defo.ie using AdGuard with DoH), I isolated the exact cause to the new beta feature under Security -> DNS Payload Delivery.
Issue:
When "DNS Payload Delivery" is enabled, it restricts the payload size of DNS responses to prevent DNS tunneling. However, because HTTPS (SVCB) records containing the ech= public key configuration are significantly larger than standard A/AAAA records, this feature strips or truncates the ECH configuration from the response. As a result, clients fall back to unencrypted SNI.
Expected behavior:
"DNS Payload Delivery" should exclude legitimate HTTPS / SVCB records (or allow larger payload thresholds for ECH configs) so users don't have to choose between DNS tunneling protection and ECH privacy.
Thanks for the great service
1 reply
-
Thanks for flagging this. With DNS Payload Delivery protection enabled, NextDNS strips the
echparameter from HTTPS records, which can prevent a browser from using ECH.Validating the structure would catch malformed configurations, but a well-formed
echparameter can still carry arbitrary data. The parameter can approach 64 KiB in size, with some of that space used by the configuration and DNS record overhead. A resolver can verify that the bytes follow the ECH format, but it can’t tell from that alone what those bytes mean to the application receiving them.Allowing
echthrough on the strength of that check would leave a large channel for delivering data to malware over DNS. That’s exactly what this optional protection is designed to disrupt.
Content aside
- 11 hrs agoLast active
- 1Replies
- 29Views
-
3
Following
