I also have this problem, so it's not a one-off.
I have overridden hosts in my hosts file and they've been there for a month
and
several reboots, so cant't see it being a caching issue.
Firefox/IE correctly obey the overriden IP addresses and have done since
day one.
Chrome ignores them and uses the DNS.
Windows XP Professional SP3, with a corporate proxy server.
Tried it with DNS prefetching on and off.
Not sure why the ignore list of the proxy settings should make a difference,
shouldn't the hosts file be checked first regardless?
Chrome 4.0.249.78 beta (36714)
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
@jonathoncorwin: If you are sending requests through a proxy server, DNS
resolution
won't come into play, since the DNS resolving will be done by the proxy. If
on the other
hand those domains are on the proxy exclusion list, then the resolves will
be done
client-side (and hence hit the modifications from HOSTS file)...
Also have this problem w/Chrome 3.0.195.38 on XP Pro SP3
Entries have been in the host file for ages and several reboots.
No proxy configured.
Firefox is OK
IE8 is OK
Chrome is NOT
If I understand correctly Chrome uses the general Windows settings for
proxy, so
should it be a proxy issue, IE too would be impacted.
?
@keith there shouldn't be anything special in chrome for avoiding 127.0.0.1
addresses.
Can you try loading up chrome://net-internals/#dns and see what the IP
addresses it observed for those hostnames were?
@eroman: It appears to be a caching issue. Firefox and IE pick up the hosts
file changes immediately, chrome apparently does not, and can sometimes
take up to 20 mins to see changes. This isn't a really big issue, it's just
mildly annoying as Chrome is my preferred browser. Is there a way to force
it to not use the cache when reloading a page? Similar to how shift+refresh
works in Firefox?
@keith: 20 minutes? That is not likely Chrome's DNS cache, since Chrome's
DNS cache expires after 1 minute.
Can you follow the instructions on about:net-internals to get a text dump?
Also if you are investigating on your end you can check out
about:net-internals/#dns to see what DNS chrome is caching.
I'm experiencing this issue in Chrome 12.0.742.112, Windows Vista, 32 bit.
No proxy. Changes to the Windows hosts file are immediately accepted by IE
and Firefox, but Chrome does not respect the changes until the browser is
restarted, or 20 to 30 minutes pass.
Is there a Linux equivalent of this bug? I am facing the same issue.
Using Chrome build 16.0.912.63 on Ubuntu.
Hosts file maps "facebook.com" to "1.2.3.4". Both ping and firefox obey the
directive. But chome connects to the DNS and successfully resolves
facebook.com. AFAIK I am not behind any proxy server. Also it depends on
who does the dns resolution in case it is a forward proxy or a transparent
proxy, there is a difference. Please fix this issue. Thanks.
Even i am seeing same issue with Chrome 18.0.1025.165 on Mac.