aiohttp icon indicating copy to clipboard operation
aiohttp copied to clipboard

DNS over HTTPS (DoH)

Open Commandcracker opened this issue 1 year ago • 1 comments

Is your feature request related to a problem?

I would like to use Mullvad as my DNS resolver, but I can't use the AsyncResolver because Mullvad only supports DoH or DoT.

Describe the solution you'd like

I think the best solution would be to have a class in aiohttp.resolver for it.

Describe alternatives you've considered

An alternative solution would be to make this into an external library, but I think a "basic" feature like DoH should be provided by aiohttp.

Related component

Client

Additional context

I was able to find a library called aiohttp-doh that adds DoH support to aiohttp, but it is outdated and does not work anymore.

Code of Conduct

  • [X] I agree to follow the aio-libs Code of Conduct

Commandcracker avatar May 30 '24 20:05 Commandcracker

I have found some related issues: #7922, #6202. dnspython would provide propper DoH support.

Commandcracker avatar Jun 02 '24 20:06 Commandcracker

aiohttp-doh looks pretty trivial, I wouldn't expect it to be difficult to update it. Then maybe the resolved could be included here if you do manage to get it working. Otherwise, someone will need to look at dnspython support or making a PR to aiodns.

Dreamsorcerer avatar Sep 07 '24 18:09 Dreamsorcerer

porting aiohttp-doh is probably the way to go. dnspython is a large dep and is not a good fit for async use cases (https://github.com/rthalley/dnspython/issues/1083)

bdraco avatar Sep 07 '24 21:09 bdraco