1、进入 DD-WRT 网页管理界面,Services(服务) -> Services(服务),DNSMasq 和 Local DNS(本地 DNS) 均设置成 Enable (启用)。滚到页面底部保存。

2、进入 DD-WRT 网页管理界面,Administration -> Commands,贴入如下脚本后,Save Startup:#!/bin/shlogger WAN up script executingif test -s /tmp/dnsmasq.adsthenrm /tmp/dnsmasq.adsfi logger Downloading China Lazy Listwget -O - http://adblock-chinalist.googlecode.com/svn/trunk/adblock-lazy.txt |grep ^\|\|[^\*]*\^$ |sed -e 's:||:address\=\/:' -e 's:\^:/127\.0\.0\.1:' > /tmp/dnsmasq.adsgrep conf-file /tmp/dnsmasq.conf ||echo -e "\nconf-file=/tmp/dnsmasq.ads" >> /tmp/dnsmasq.conflogger Restarting dnsmasqkillall dnsmasqdnsmasq --conf-file=/tmp/dnsmasq.conf
