On Oct 13, 2007, at 2:43 AM, 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.
Host queries your DNS server. It has no concept of a /etc/hosts file.
As for Firefox. I'd guess that it's not asking for either by those
EXACT names. But you would have to do some troubleshooting to figure
that out.
Why doesn't it work when man resolv.conf says it should?
CL<