添加自定义 DoH 服务器(只支持V2版本) #96
skydevil88
announced in
Announcements
Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
1、添加自定义DoH服务器 (只支持V2版本)
在 Resource 目录下增加一个 DoHServer.json 文件,DoH 服务器需要支持 JSON API 并且国内能够正常访问。
内容如下,url 必需使用 IP,完成后重启Xbox下载助手。注:以下例子服务器已经被404。
[ { "name": "Google", "url": "https://8.8.8.8/resolve", "host": "" }, { "name": "DNS.SB(Globa)", "url": "https://185.222.222.222/dns-query", "host": "doh.sb" }, { "name": "Cloudflare", "url": "https://[2606:4700::6810:85e5]/dns-query", "host": "dns.cloudflare.com" } ]2、使用 Cloudflare Workers 自建中转DoH服务器
使用 Cloudflare Workers 免费部署一台自己专用DoH中转服务器(需要有一个托管在cloudflare域名)。
注:以下例子域名 doh.example.com 是你自己托管在cloudflare域名,二级域名请不要带有“dns、doh、dot”等关键字,否则容易触发封控。(可以使用 speedtest.example.com, 部分地区运营商对 speedtest 相关的域名有白名单策略)
1、首选创建一个名为 doh 项目

2、 选择编辑代码,输入以下代码然后点击“部署”
3、由于workers.dev域名国内没法访问,还需要增加一个自己托管在cloudflare域名,设置->触发器

添加自定域,其中红色 example.com 为你自己的域名。
4、检查是否正常,如果不支持 /dns-query 可以尝试使用 /resolve
更多 DNS 服务器,请参阅维基百科公共域名解析服务列表。
最后修改 Resource 目录下修改 DoHServer.json 文件,内容如下,完成后重启Xbox下载助手。
[ { "name": "Google(IPv4)", "url": "https://172.67.209.179/dns.google/resolve"", "host": "doh.example.com" }, { "name": "Google(IPv6)", "url": "https://[2606:4700:3033::ac43:d1b3]/dns.google/resolve"", "host": "doh.example.com" }. { "name": "DNS.SB(IPv4)", "url": "https://172.67.209.179/doh.sb/dns-query"", "host": "doh.example.com" }, { "name": "DNS.SB(IPv6)", "url": "https://[2606:4700:3033::ac43:d1b3]/doh.sb/dns-query"", "host": "doh.example.com" }. { "name": "Cloudflare((IPv4)", "url": "https://172.67.209.179/dns.cloudflare.com/dns-query"", "host": "doh.example.com" }, { "name": "Cloudflare(IPv6)", "url": "https://[2606:4700:3033::ac43:d1b3]/dns.cloudflare.com/dns-query"", "host": "doh.example.com" } ]Beta Was this translation helpful? Give feedback.
All reactions