Merlin 的 dnscrypt 安装脚本,自动选择稳定的上游 DNS

2018-07-19 11:12:03 +08:00
 zmz125000
电信连国外的 DNS/dnscrypt 服务器查询时经常出现 timeout 几十秒的情况,用了这个脚本后路由器 DNS 稳定不少。
测试 alicdn 不会解析到国外的 ip,即使比不上国内的 DNS 也算是能用了。
https://github.com/thuantran/dnscrypt-asuswrt-installer

kw: DNS-over-HTTPS, dnscrypt-proxy, dnscrypt,Merlin, 梅林,无污染,干净,国内
5231 次点击
所在节点    宽带症候群
3 条回复
nickhuang
2018-08-24 20:19:28 +08:00
谢谢分享。请教一下,那用这个的话,shadowsocks 的 DNS 方案要选哪个?
zmz125000
2018-08-24 21:00:21 +08:00
@nickhuang dnsmasq 填 Chinadns 来提供国内结果,再填几个 dnscrypt ss-t 之类的提供无污染结果,参数加上 all-servers
nickhuang
2018-08-24 21:48:52 +08:00
@zmz125000 我是指 shadowsocks 的 UI 里面有一个 DNS 设置,现在国内 DNS 那里选的是用运营商的,国外 DNS 选的是 Chinadns2,server 填的是 8.8.8.8
但是你的意思是直接改 dnsmasq.conf 吗?
当前内容如下
pid-file=/var/run/dnsmasq.pid
user=nobody
bind-dynamic
interface=br0
interface=ppp1*
no-dhcp-interface=ppp1*
no-poll
no-resolv
server=127.0.0.1#7913
no-negcache
cache-size=9999
min-port=4096
dhcp-range=lan,192.168.1.1,192.168.1.254,255.255.255.0,86400s
dhcp-option=lan,3,192.168.1.99
dhcp-option=lan,252,"\n"
dhcp-authoritative
read-ethers
addn-hosts=/etc/hosts.dnsmasq
conf-dir=/jffs/configs/dnsmasq.d
server=127.0.0.1#65053

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/472260

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX