aio-libs / aiohttp

Asynchronous HTTP client/server framework for asyncio and Python
https://docs.aiohttp.org
Other
14.79k stars 1.97k forks source link

DNS over HTTPS (DoH) #8431

Open Commandcracker opened 1 month ago

Commandcracker commented 1 month ago

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

Commandcracker commented 1 month ago

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