rthalley / dnspython

a powerful DNS toolkit for python
http://www.dnspython.org
Other
2.38k stars 497 forks source link

DoH3 or HTTP3 #1029

Closed UjuiUjuMandan closed 4 months ago

UjuiUjuMandan commented 6 months ago

Motivation We can utilize HTTP/3 in DoH implementation. Cloudflare, Google and NextDNS server already support this!

Screenshot 2024-01-03 at 01 23 10

NextDNS log

Describe the solution you'd like. Enable HTTP/3 in DoH by default, if not available, fallback to HTTP/2.

rthalley commented 6 months ago

Our current plan for this is to support it when httpx supports it, so we can keep using just one HTTP client mechanism.

UjuiUjuMandan commented 6 months ago

I found this: https://github.com/encode/httpx/issues/275 . Hope they will support it soon!

rthalley commented 4 months ago

We now support HTTP/3, just pass h3=True to https(). We will switch to the httpx implementation when it comes out.