Linux下解决DNS污染

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

1 安装

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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
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
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 使用

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
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
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
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 *