On Sat, 13 Oct 2007 11:43:46 +0200, Karel Kulhavy wrote: >I want to make my OS return 127.0.0.1 on google-analytics.com and >ad.doubleclick.net to speed up the work with Sourceforge. > >I put >127.0.0.1 google-analytics.com >127.0.0.1 ad.doubleclick.net >into /etc/hosts > >and checked that /etc/resolv.conf contains >lookup file bind > >According to man resolv.conf this should result in /etc/hosts having priority >over the DNS system. However, it simply doesn't work. Both Firefox and the >"host" command behave as if I didn't do anything. > >Why doesn't it work when man resolv.conf says it should? > >CL<
Run dnsspoof on your firewall. Works like a charm. Part of the dsniff package. Includes a ready made hostfile that contains loads of the annoyances and you add your own. Does wildcard names too, like *.adserver.* Also resolves names for LAN hosts if you add them. Easy, but remember to pkill dnsspoof and restart it after any update to the spoofing config file. >From the land "down under": Australia. Do we look <umop apisdn> from up over?