Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As you probably know Google Chrome has its own internal DNS cache. Is there a way to clear it without having to wait for the time out or close the browser?

share|improve this question
The only reason for me to flush Chrome's DNS cache is because if I don't, I can't access Google. Luckily, Google's not the only search engine out there (or else I wouldn't have found this question) and I only have to deal with Chrome at work. – Nolonar Apr 11 '13 at 9:16
For me, this is probably caused by having an incorrect DNS-server in resolv.conf. (I am trying to access an internal server on a VPN). The people at T-com have misconfigured their DNS to respond with their advertisement site instead of NXDOMAIN, and the people who wrote Chrome didn't care to respect the resolv.conf order, but instead happily use whatever DNS server appears to work. – Ketil Feb 21 '14 at 2:32
related:… – Nathan Long Apr 30 '14 at 12:51

15 Answers 15

up vote 921 down vote accepted

Navigate to chrome://net-internals/#dns and press the "Clear host cache" button.

share|improve this answer
Strangely, this only works in one direction. I have a mapping in the hosts file that maps a domain name to the local machine (i.e. to, when I remove the mapping and flush the DNS cache in Chrome, it correctly loads the site from the internet, but when I add the mapping again to the hosts file, it still loads the site from the internet. It shows the cached DNS list empty in Chrome after clearing the DNS cache (also cleared the OS cache using ipconfig /flushdns), still, it loads the site from the internet! Seems like a bug. – Mee Oct 28 '10 at 2:14
Even more annoying, Chrome shows the IP address correctly ( for that domain in the DNS cache list (after flushing and trying to load the site again), still it loads the site from the internet. – Mee Oct 28 '10 at 2:15
awesome, is there a list of all the chrome://* options anyway does anyone know? – Ian May 13 '11 at 9:18
@Ian chrome://about – ephemient Sep 24 '11 at 18:47
Wasn't enough for me. Had to "ipconfig /flushdns" in command prompt (found in answer below) – Adam Tal May 27 '14 at 21:47

Sometimes you need to flush the socket pools after flushing the DNS:

share|improve this answer
Finally a solution that seem to work! Thanks! – gabrielf Nov 10 '14 at 9:52
Note that Chrome now monitors the hosts file and autoclears the dnscache whenever there are any changes to the hosts file. —You can easily test if that works on your system by adding a blank line after your hosts file, and the list at chrome://net-internals/#dns will be autoupdated.— Windows' dnscache service will also (at least on win 8.1) monitor the hosts file for changes, so after you have updated your hosts file, simply clicking on the button "Flush socket pools" will work. Nothing else is needed. – Pacerier May 21 '15 at 6:02
Yeah, I seem to have noticed the same behavior since 1 year or so. However, maybe it doesn't work all the time, for I still get the upvotes on this answer. – Bojan Hrnkas May 21 '15 at 6:45
Just tested on Server 2003 too. Whenever there are any changes to the hosts file, dnscache service automatically reloads the cache without any need for ipconfig /flushdns nonsense. ipconfig /flushdns seems to be a red herring in this entire issue. – Pacerier Jul 6 '15 at 12:57
Worked for me, even after flushing dns in cmd and doing the accepted answer – Rob Scott Dec 3 '15 at 14:43

"Navigate to chrome://net-internals/#dns" doesn't work in the Google Chrome browser, at least on my system. Looks like this solution maybe works for the Google Chrome OS, but not the Google Chrome browser more generally speaking. For me the link redirects here:
The Chromium Projects

It appears "Empty the Cache" is the better solution. Also note my browser says "Preferences" rather than "Options"


"Go to tools -> options -> Under the hood -> Clear Browsing data and check 'empty the cache' and click on clear browsing data. Yes yes, I know, it is not the DNS cache I would expect it to clear, but hey it seems to. And now it works for me."

share|improve this answer
For the record, this solution didn't clear up my particular problem. Hopefully I just need to wait another day for DNS propagation. – PJ Brunet Oct 20 '11 at 8:22
Confirmed this worked for me, Clear Browsing Data -> Empty the cache. No other method worked. Thanks PJ. – Air Dec 29 '12 at 23:04
The accepted answer didn't work for me, and this method did. Thanks! – Martin Argerami Sep 6 '13 at 7:39
This worked for me on both chrome and chromium when /etc/resolver/ was being ignored. – chovy Sep 17 '13 at 3:31
Looks like Google is gradually making name changes to some internal URLs over different versions. As of version 27.0.1421.0 (184274)... – DocSalvager Jan 16 '14 at 10:25

Clicking "clear host cache" in chrome://net-internals/#dns should do it for Google Chrome, but there are other DNS caches to consider on your machine.


ipconfig /flushdns

OS X pre-10.7 (before Lion):

sudo dscacheutil -flushcache

OS X 10.7–10.9 (Lion, Mountain Lion, Mavericks):

sudo killall -HUP mDNSResponder

OS X 10.10+ (Yosemite):

sudo discoveryutil mdnsflushcache

Your router may be caching the DNS as well (restart it or read the manual). The ultimate test is to use dig, but this uses your network's DNS host, not the authoritative server by default:


To query right from the source, try something like:

share|improve this answer

This worked for me: Empty and Clear the Disk Cache

In Chrome, click on Wrench icon, and then Options. Go to Under the Hood tab. Click on Clear browsing data button under Privacy section. Select just "Empty the cache" check box, and then click on Clear browsing data button.

This worked immediately - I didn't even have to close the browser.

share|improve this answer
This seems to work to force Chrome to recognize changes to the hosts file. – minamhere Jun 26 '12 at 2:39
This worked for me on Mac Chrome, after having tried the chrome://net-internals/#dns flush trick mentioned here, without success. – Markus Amalthea Magnuson Mar 10 '14 at 20:16

In OS X 10.9.1 w/ Chrome 32 I needed to both clear the host cache and flush the socket pools to get Chrome to refresh the DNS cache:

  1. Navigate to chrome://net-internals/#dns and click "Clear Host Cache"
  2. Navigate to chrome://net-internals/#sockets abd click "Flush Socket Pools"
share|improve this answer
I needed it in Windows 8.1 as well, so it's not just OS X. – benrick Jul 14 '14 at 2:34
Chrome for Linux also need it chrome://net-internals/#sockets – pengemizt Dec 17 '14 at 11:51
Chrome for Linux just needs a socket flush. No DNS flush. – Elijah Lynn Feb 5 at 17:04

As far as I can find, in recent versions of Chrome (I'm on 26.0.1410.43), there's no (reliable) way to do it, at least not on a Mac. None of the suggestions on this page have worked for me.

My situation is that I've added a hosts file entry, but Chrome is still going to the IP address returned by DNS. Firefox works correctly.

In fact, the chrome://net-internals/#dns page is simply lying about the IP address for me. It shows the IP from the hosts entry, but that is clearly not where it's actually getting the site from.

share|improve this answer
Same problem here. I have tried clearing cache, clearing the internal DNS cache, ipconfig flush dns, and it is still loading a local website from the live domain. If I open it in "Incognito" it works, or in Firefox it works, but normal Chrome refuses to reset its DNS – andrewtweber Apr 23 '13 at 14:43

I know this is an old question but I got annoyed by same the complaints as others: even after clearing the cache it can still take a minute or two for the new DNS changes to kick in.

There are a few ways around it. After clearing the DNS cache through chrome://net-internals/#dns (or using an extension that achieves the same result):

  1. Open an incognito window and the new DNS mappings for the domain will be effective immediately.

  2. Clear the browser cache. This is cumbersome if you use your browser for regular browsing. You can run a separate instance of the browser as another user and clearing the cache in that account will not interfere with your regular browsing cache. I haven't tried this but it should work.

  3. Hit CTRL+F5. I had to keep CTRL+F5 pressed for about one second which consecutively reloads the page a couple of times. This is odd behavior but it works and is also just as effective. This is my preferred approach.

Ideally there ought be a plugin that can purge the DNS and cache (specifically just the document cache and not the cookie cache) but I didn't find anything of the sort yet.

UPDATE: On OSX the Gas Mask application is excelling for switching between hosts files and along with the #2 workaround, it's quite effective.

share|improve this answer
Refreshing will not help one bit. The active TCP sockets will still be active. You either wait it out (1-2 minutes) or manually flush them. – Pacerier May 21 '15 at 6:23

I tried to flush the DNS cache in so many ways, but nothing worked for me. At last, I planned to change my DNS entry. This trick will work for all people who access Internet through high speed LAN connection.

On a LAN connection, a user is generally provided two DNS addresses. One is primary and another is secondary or alternative DNS address. What I did was that I just changed the secondary address to the primary address and vice-versa. It worked for me instantly.

I kept the alternative DNS address as primary address for two days. The problem solved itself and later, I reinstated the old DNS entry.

share|improve this answer

Full process:

Created site in IIS (windows 8), set host header.

Tried hitting the the host with no host file, ensuring to use http:// so it does not just do a google search. Correctly failed in chrome "Version 32.0.1700.76 m"

Add host to host file as, now can hit it in chrome.

Remove from host file and run ipconfig /flushdns, chrome still shows site!

Do nothing other than CTRL+F5 and now site correct fails in Chrome.

With the number of different answers here I wonder if we all have slightly different use cases.

share|improve this answer

Try DNS Flusher for Chrome. Note that to use it, it requires a command line flag, --enable-benchmarking when you start the Chrome browser.

share|improve this answer

Navigate to chrome://net-internals/#dns and press the "Clear host cache" button. as answered already Also you may need dscacheutil -flushcache command in OS X, to flush system-wide DNS cache. ipconfig /flushdns in windows command prompt

share|improve this answer

For me private browsing did the trick (New incognito window/ private window).

share|improve this answer
Hi Bart, welcome to Superuser! Unfortunately, this question is about the computer-version of Chrome, not the mobile version. I'd suggest editing your answer to reflect the desktop version. Thanks – Canadian Luke Feb 21 '14 at 2:35

Chrome_Hosts_Flush_Util :

It is to resolve the problem that Chrome can't use the correct hosts after modifying hosts file because of Chrome using socket pools.

Chrome maintains long connections in the connection pool to speed up.When Chrome finds that a request can reuse a connection in the connection pool, it won't go through the DNS again, thus, we always perceive that Chrome won't respond to hosts change immediately.

Chrome has provided an interface for flushing the connection pool in the chrome://net-internals/#sockets tab,but I think it's annoying that I have to go to the tab first, and click so small button with a trackpad.

I found that when clicking the button of flush socket pool, Chrome executes two key javascript methods.


so I encapsulate these two methods in an AppleScript which can be converted to OSX app or Alfred workflow which both can be invoked easily.

share|improve this answer
Hi Boreas320, can you provide a summary of what your link provides in your answer in case it becomes out of date? Answers that are only/mostly a link are discouraged as they can go stale. – bertieb Aug 3 '15 at 12:41
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – Dave M Aug 3 '15 at 12:58

For iPhone users, these techniques work just as effectively. I had to do some testing of a website, and I wanted to override the normal DNS server and use my own DNS server with DNS entries that are not yet public.

I override the DNS entry in my wifi setting on my iPhone 6 Plus to my custom DNS server. That was good enough for Safari and Perfect Browser. But Chrome seemed to ignore that and had its own set of DNS entries. I could NOT figure out where they came from.

I did what they described above

  1. Navigate to chrome://net-internals/#dns and click "Clear Host Cache"
  2. Navigate to chrome://net-internals/#sockets abd click "Flush Socket Pools"

AND I had to also Use an InCognito Tab as mentioned above.

Only THEN did Chrome use my custom DNS entry.

share|improve this answer

You must log in to answer this question.

protected by Community Sep 14 '15 at 17:52

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .