aio-libs / aio-libs/aiohttp

DNS over HTTPS (DoH)

未关闭
#8,431 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Python
星标
16.5k
派生
2.4k
平均合并
17 小时 22 分钟
30 天内合并 PR
212

描述

### Is your feature request related to a problem?

I would like to use [Mullvad](https://mullvad.net/en/help/dns-over-https-and-dns-over-tls#specifications) as my DNS resolver, but I can't use the [AsyncResolver](https://docs.aiohttp.org/en/stable/client_advanced.html#resolving-using-custom-nameservers) 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](https://pypi.org/project/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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。