Linux下解决DNS污染

官方的dnscrypt提供了安装脚本。

1 安装

wget https://download.dnscrypt.org/dnscrypt-proxy/binaries/linux/dnscrypt-proxy-x86_64-linux-musl.tar.gz
tar -xzvf dnscrypt-proxy-x86_64-linux-musl.tar.gz
cd dnscrypt-proxy
sudo installer.sh

可以点这里找最新包

2 使用

alias dnscypt='/opt/dnscrypt-proxy/x86_64-linux-musl/bin -a 127.0.0.12 -R cisco'
dnscrypt
sudo vim /etc/resolve.conf
# 增加
nameserver 127.0.0.12
sudo /etc/init.d/networking restart

另:resolver列表如下 https://dnscrypt.org/dnscrypt-resolvers.html

 

Leave a Reply

Your email address will not be published. Required fields are marked *