将规则文件下载至dnsmasq的附加目录:

cd /etc/dnsmasq.d
wget https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/accelerated-domains.china.conf
wget https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/master/bogus-nxdomain.china.confCode language: JavaScript (javascript)

从github下载dnscrypt-proxy并配置、安装系统服务(apt里面的版本有bug):

https://github.com/jedisct1/dnscrypt-proxy/releases/download/2.0.19/dnscrypt-proxy-linux_arm64-2.0.19.tar.gz
tar xzvf dnscrypt-proxy-linux_arm64-2.0.19.tar.gz
cp example-dnscrypt-proxy.toml dnscrypt-proxy.toml
#复制样例、自行更改监听端口以及缓存等配置
#安装为服务、自启
./dnscrypt-proxy -service install
systemctl start dnscrypt-proxy
systemctl enable dnscrypt-proxyCode language: PHP (php)

结束。


0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据