Repository navigation
feat: xdns reslove support DoT &DoH - #6857
Closed
HPPC114514 wants to merge 0 commit into
Closed
HPPC114514 wants to merge 0 commit into
HPPC114514 wants to merge 0 commit into
Conversation
Contributor
Author
Contributor
|
等合并主线再 rebase 主线吧, |
Member
|
#6718 已被合并, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
xdns:原有 UDP 解析器基础上,新增 DoT和DoH支持。解析器可在同一列表中显式混合配置。纯 UDP 配置继续沿用异步
PacketConn路径。主要改动
udp://、dot://、doh://解析器地址,并统一配置解析与校验。/dns-query路径,保留自定义路径与查询参数。配置示例
{ "type": "xdns", "settings": { "resolvers": [ "example.xdns+udp://192.0.2.1:53", "example.xdns:txt+dot://resolver.example:853", "example.xdns:aaaa+doh://resolver.example/dns-query" ] } }客户端省略记录类型时默认使用 TXT。UDP 解析器需要 IP 地址和显式端口。使用 DoT 或 DoH 时,应避免其连接路径再次依赖同一个 XDNS 出站,以免产生递归解析。