本篇被openwrt22.03上部署smartdns代替。
SmartDNS是一个运行在本地的DNS服务器,SmartDNS接受本地客户端的DNS查询请求,从多个上游DNS服务器获取DNS查询结果,并将访问速度最快的结果返回给客户端,提高网络访问速度。 同时支持指定特定域名IP地址,并高性匹配,达到过滤广告的效果。与dnsmasq的all-servers不同,smartdns返回的是访问速度最快的解析结果
采用xshell登录openwrt的ssh端口,按照用户名密码登录。
- 1安装SmartDNS
mkdir tmp cd /tmp wget https://github.com/pymumu/smartdns/releases/download/release27/luci-app-smartdns.1.2019.11.02-1102.all-luci-all.ipk wget https://github.com/pymumu/smartdns/releases/download/release27/smartdns.1.2019.11.02-1102.x86-openwrt-all.ipk opkg install smartdns.1.2019.11.02-1102.x86_64-openwrt-all.ipk opkg install luci-app-smartdns.1.2019.11.02-1102.all-luci-all.ipk
2,配置smartdns并使用
- 效果检测
开启smartdns前
开启smartdns后
参考资料
- https://github.com/pymumu/smartdns/releases
- https://blog.open4j.com/2019/06/10/lede-openwrt-install-smartdns/
- https://koolshare.cn/thread-158063-1-1.html