本文是PVE的debian虚拟机中搭建pi-hole实现去广告的续篇,本文实现去广告前的dns解析加速。
- 简介
项目地址:https://github.com/pymumu/smartdns
- 安装smartdns
wget https://github.com/pymumu/smartdns/releases/download/Release33/smartdns.1.2020.09.08-2235.x86_64-linux-all.tar.gz tar xvf smartdns.1.2020.09.08-2235.x86_64-linux-all.tar.gz cd smartdns chmod +x ./install ./install -i nano /etc/smartdns/smartdns.conf
要修改以下部分
systemctl start smartdns systemctl status smartdns
- 检测上游服务的设置
nslookup -querytype=ptr smartdns
- 更改pi-hole的dns设置
参考资料:
- https://github.com/pymumu/smartdns
- http://blog.sinovale.com/2916.html