New issue
Advanced search Search tips

Issue 791496 link

Starred by 3 users

Issue metadata

Status: Archived
Owner: ----
Closed: Dec 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Chromium just won't clear DNS cache

Reported by mac...@getcontentos.com, Dec 4 2017

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1. Setup a server (e.g. localhost) and update your /etc/hosts to make a normal domain (like subdomain.domain.com) pointing to that server
2. Update your /etc/hosts file
3. Notice that Chromium still directs me to the original server (not overriden by /etc/hosts)
4. Disable prediction service to load pages more quickly
4. chrome://net-internals/#dns click clear host cache
5. run devtools with cache disabled
6. hard reload with Ctrl + F5
7. Restart Chromium
8. Notice that Chromium STILL points to the original server, ignoring completely recent modifications to /etc/hosts
9. If I start another profile, it works. 

What is the expected behavior?
See steps to reproduce

What went wrong?
I'm developing a frontend application and I must use the same domain for development as for production. Hence I use /etc/hosts file to point my domain (actually its a subdomain.domain.com if it matters) to localhost when I need to develop it. However Chromium has trouble noticing that change in /etc/hosts. Just nothing works, I tried everything. The only way is to either way unpredictably long time or create a new browser profile.

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: stable
OS Version: 62
Flash Version:
 
Also tried to add random query strings, didn't work either.
Components: -Platform>DevTools Internals>Network>DNS
Components: -Internals>Network>DNS Internals>Network
Labels: Needs-Feedback
Status: Untriaged (was: Unconfirmed)
This doesn't sound like a problem with the DNS cache to me. In particular, we have no way of persisting the DNS cache across restarts, so if you restarted Chromium and still got the old address, it's being cached in a layer we don't control, possibly a proxy.

If you don't think it's being cached anywhere else, can you upload a net-export log following the instructions at https://sites.google.com/a/chromium.org/dev/for-testers/providing-network-details? It would be useful to see two different logs:
- Load the site, edit hosts, hard refresh the site (all shown in the log)
- Load the site, edit hosts, restart Chromium, start logging, load the site again
Components: -Internals>Network Internals>Network>DNS

Comment 5 by rch@chromium.org, Dec 8 2017

mgersh: shall we close this as intended behavior?

Comment 6 by mge...@chromium.org, Dec 18 2017

Status: Archived (was: Untriaged)
Closing since we don't have enough information.

Sign in to add a comment