Total Pageviews

Friday 20 December 2019

利用edgedns 解决dns污染问题

在mac机器上。
wget https://github.com/jedisct1/edgedns/releases/download/0.2.2/edgedns-0.2.2-x86_64-apple-darwin.tar.gz
mkdir edgedns-0.2.2-x86_64-apple-darwin
mv edgedns-0.2.2-x86_64-apple-darwin.tar.gz edgedns-0.2.2-x86_64-apple-darwin
cd edgedns-0.2.2-x86_64-apple-darwin
tar xvf edgedns-0.2.2-x86_64-apple-darwin.tar.gz
(会解压出可执行文件edgedns)
./edgedns -h
wget https://github.com/jedisct1/edgedns/raw/master/edgedns.toml
nano edgedns.toml
(把第8行改为servers = ["my-vps-ip:dnsmasq-port-number-on-vps"] )
sudo ./edgedns -c edgedns.toml 


https://github.com/jedisct1/edgedns/releases

(上面的my-vps-ip:dnsmasq-port-number-on-vps的意思请参见https://briteming.blogspot.com/2 019/12/vpsdnsmasq.html里的“在自己的vps上安装dnsmasq”部分)