Skip to content

DoH and ECH support #944

Description

@PACHAKUTlQ

May DNS-over-HTTPS and Encrypted-Client-Hello be supported?

I know you can manually perform DoH lookup and use the resolved IP for connection, but that is complex.

Also, chrome and modern browsers by default enables ECH when DoH is configured. (Currently I think there is no workaround in wreq to use ECH.) If DoH will not be supported, manually configuring ECH key is also enough.

Activity

0x676e67 commented on Sep 15, 2025

@0x676e67
Owner

Is there a use case for this? Currently the library doesn't plan to support this, but it does support sending TLS extensions.

PACHAKUTlQ commented on Sep 15, 2025

@PACHAKUTlQ
Author

Is there a use case for this? Currently the library doesn't plan to support this, but it does support sending TLS extensions.

Making DNS secure, forging SNI, bypassing traffic analysis and internet censorship.
As a library that mimics browser using boringssl, wreq is perfect for proxy, tunneling and security tools. Supporting DoH and ECH can further improve privacy and security.
Plus, some websites use DNS to find real IP behind proxies, DoH make these impossible because the IPs would be DoH service providers'.

added
C-featureCategory: feature. This is requesting a new feature.
B-rfcBlocked: Request for comments. More discussion would help move this along.
on Sep 15, 2025

0x676e67 commented on Sep 15, 2025

@0x676e67
Owner

This reason is reasonable.

added
E-pr-welcomeThe feature is welcome to be added, instruction should be found in the issue.
on Sep 16, 2025

0x676e67 commented on Apr 2, 2026

@0x676e67
Owner

cc @PACHAKUTlQ, here’s a cool example of using DoH and ECH to encrypt SNI. It’d be a solid reference if anyone’s interested in picking this up and finishing the task. It’s built on rustls, but the underlying logic is pretty much the same: https://docs.rs/crate/echw/0.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-rfcBlocked: Request for comments. More discussion would help move this along.C-featureCategory: feature. This is requesting a new feature.E-pr-welcomeThe feature is welcome to be added, instruction should be found in the issue.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions