Win 11 添加并使用 DOH(Win 11 add and use DOH)

Windows 默认支持的 DOH 不多,起码没有国内可用的,可以通过命令查看

netsh dns show encryption

使用管理员启动 cmd 添加自定义的 DOH

netsh dns add encryption 119.29.29.29 "https://doh.pub/dns-query" no no
netsh dns add encryption 223.5.5.5 "https://dns.alidns.com/dns-query" no no
netsh dns add encryption 223.5.5.5 "https://dns.alidns.com/dns-query" no no
netsh dns add encryption 103.2.57.6 "https://public.dns.iij.jp/dns-query" no no

再使用命令查看

netsh dns show encryption

接着修改电脑上的 DNS 即可,比如输入就会显示加密可用

119.29.29.29
————————

Windows does not support many dohs by default. At least there is no domestic available one. You can view it through the command

netsh dns show encryption

Add a custom DOH using the administrator launch CMD

netsh dns add encryption 119.29.29.29 "https://doh.pub/dns-query" no no
netsh dns add encryption 223.5.5.5 "https://dns.alidns.com/dns-query" no no
netsh dns add encryption 223.5.5.5 "https://dns.alidns.com/dns-query" no no
netsh dns add encryption 103.2.57.6 "https://public.dns.iij.jp/dns-query" no no

Then use the command to view

netsh dns show encryption

Then modify the DNS on the computer. For example, the input will show that encryption is available

119.29.29.29