Thread: Ad blocking
View Single Post
brontide's Avatar
Posts: 868 | Thanked: 474 times | Joined on Oct 2007 @ Capital District, NY, USA
#49
Originally Posted by qwerty12 View Post
I haven't come think of it. I thought 0.0.0.0 was supposed to be speedier but I'll try it out, thanks!
127.0.0.x, 0.0.0.0... try pinging them, they all get answered by 127.0.0.1

So I think the only real change would be the flush of all the buffers when you switched. Also has anyone tried using /etc/dnsmasq.conf rather than updating the hosts file directly?

Code:
# or if you want it to read another file, as well as /etc/hosts, use                                                                                                                                                                                                               
# this.                                                                                                                                                                                                                                                                            
addn-hosts=/etc/banner_ad_hosts
and I use this to populate the file

Code:
#!/bin/sh

wget -q -O - http://www.mvps.org/winhelp2002/hosts.txt | sed -e '/127\.0\.0\.1  localhost/ D' > /etc/banner_ad_hosts
All I do with the sed is yank the localhost line since it's not necessary.

If you make changes to dnsmasq.conf you need to restart the daemon '/etc/init.d/dnsmasq restart'
 

The Following User Says Thank You to brontide For This Useful Post: