修改启动脚本
由于 OpenWrt (luci) 的配置文件是自动生成的,要对他的启动脚本进行小 hack
修改 /etc/init.d/dnsmasq 的 start() 函数,加入
echo "conf-dir=/etc/dnsmasq.d" >> $CONFIGFILE
下载和配置
地址: https://github.com/felixonmars/dnsmasq-china-list
新建文件夹 /etc/dnsmasq.d
将 accelerated-domains.china.conf 和 bogus-nxdomain.china.conf 放到 /etc/dnsmasq.d 中
重启 dnsmasq
配置完成 试试效果
Before

After

原文: http://blog.eqoe.cn/posts/dnsmasq-china-list-openwrt.html