Trying to get ad blocking working in OpenWrt router firmware 10.03.1
I've prepared a file /etc/hosts.ads contain harmless entries like
address=/eviladserver1.com/127.0.0.1
address=/eviladserver2.com/127.0.0.1
in /etc/dnsmasq.conf I added the following line:
addn-hosts=/etc/hosts.ads
and restarted dnsmasq. Now on restart I see the log being filled with error messages:
Jun 3 22:52:33 OpenWrt daemon.err dnsmasq[13056]: bad address at /etc/hosts.ads line 1
about every single line in the hosts.ads I googled it but with no luck. Everything seems right syntax-wise, why the dnsmasq does not like it?
(all lines in hosts.ads end with [LF] only)
Appropriate format for /etc/hosts.ads is a standard HOSTS format such as:
Look at my implementation of adblock for OpenWRT at http://jazz.tvtom.pl/adblock-w-openwrt/ (polish).