配置 dnscrypt-proxy

dnscrypt-proxy 可以作为 DoH 客户端转发 DNS 服务。感谢 V2EX 网友 exkernel,提出了本建议

最简单的 dnscrypt-proxy.toml 配置文件写成如下就可以了:

  
server_names = ['ea-dns.rubyfish.cn', 'uw-dns.rubyfish.cn']
listen_addresses = ['0.0.0.0:53']
doh_servers = true

[static]
  [static.'ea-dns.rubyfish.cn']
  stamp = 'sdns://AgQAAAAAAAAADzExNS4xNTkuMTU0LjIyNgAPZG5zLnJ1YnlmaXNoLmNuCi9kbnMtcXVlcnk'
  [static.'uw-dns.rubyfish.cn']
  stamp = 'sdns://AgQAAAAAAAAADDQ3Ljk5LjE2NS4zMQAPZG5zLnJ1YnlmaXNoLmNuCi9kbnMtcXVlcnk'