How to Flush Windows DNS Cache

Internet connection problems? DNS cache corrupted? Facing DNS issues or problems? Maybe you need to flush Windows DNS Cache. If your computer is finding it difficult to reach a certain website or server, the problem may be due to a corrupt local DNS cache. Sometimes bad results are cached, maybe due to DNS Cache Poisoning and Spoofing, and therefore need to be cleared from the cache to allow your Windows computer to communicate with the host correctly.

Typically, there are three types of caches in Windows which you can flush easily:

  1. Memory Cache
  2. DNS Cache
  3. Thumbnails Cache

Clearing the Memory Cache can free up some system memory while clearing the Thumbnail Cache can free up space in your hard disk. Clearing the DNS Cache can fix your internet connection problem. Here’s how you can flush the DNS cache in Windows 8 or Windows 7.

Flush Windows DNS Cache

flush windows dns cache

You need to open an administrative command prompt windows. In Windows 8, to do so, Press Win+C in combination to bring up the ‘Charms bar’. In its search box, type cmd. Then, right-click on it and choose ‘Run as administrator’ option. Alternatively, you can also open an elevated command prompt from the WinX menu.

Next, type the following and hit enter:

ipconfig /flushdns

You should be able to see a confirmation dialog window:

Windows IP Configuration. Successfully flushed the DNS Resolver Cache.

Our freeware FixWin for Windows, let you flush the DNS cache, etc., in a click.

Display DNS Cache

If you wish to confirm if the DNS cache has been cleared, you can type the following command and hit Enter:

ipconfig /displaydns

This will display the DNS cache entries if any.

Turn Off or Turn On DNS Cache

To turn off DNS caching for a particular session, type net stop dnscache and hit Enter.

To turn on DNS caching, type net start dnscache and hit Enter.

Of course, when you restart the computer, the DNC caching will, in any case, be turned on.

Disable DNS Cache

If for some reason you wish to disable DNS caching, type services in start search and hit Enter to open the Services Manager. Here locate the DNS Client service.

The DNS Client service (dnscache) caches Domain Name System (DNS) names and registers the full computer name for this computer. If the service is stopped, DNS names will continue to be resolved. However, the results of DNS name queries will not be cached and the computer’s name will not be registered. If the service is disabled, any services that explicitly depend on it will fail to start.

Double-click on it to open its Properties box. Here change its startup type from Manual to Disabled. If you disable the DNS Client service, DNS Lookups may take longer.

These resources may also interest you:

  1. How to change DNS settings in Windows
  2. Manage web browsing speed by changing DNS settings
  3. Check if your DNS settings have been compromised
  4. How to reset Winsock & reset TCP/IP.

Post ported from WinVistaClub, updated and posted here.

Posted by on , in Category Windows with Tags
Anand Khanse is the Admin of, a 10-year Microsoft MVP Awardee in Windows (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.


  1. Greg Partlow

    what about ipconfig /registerdns ?

  2. This registers any DNS records that you or some programs may have recorded in your Hosts file. More on this here:

  3. Kassem Mezher

    Thnaks a lot this helped me resolve a problem on my computer 😉

  4. Chalaka

    How to fix purge caches?

  5. You can flush and renew your DNS by simply disabling your network adapter and re-enabling it.

  6. Bob Marley

    What’s the point of the DNS client service? It takes no time at all to perform the DNS lookup and have the correct address. It takes much longer to try the cached value, empty the cache because it’s wrong, and try again. I solidly maintain that caches cost time, they don’t save it.

  7. kent

    how can I run auto flush-dns? For example every 10 minutes?

  8. Jesse

    The point is that 99% of the time, the cached DNSs are correct. It would take considerably more time and resources to perform the DNS lookup each time. I’m also not so sure you understand just how much the DNS cache is referred to. Just because you visit once, does not mean that the DNS must be resolved once. It must be resolved for every page you visit, every image that loads, every javascript etc. – visiting a single page does not mean that everything is sent in one single request.

  9. Karen McLeod

    I have Windows 8.1 and I’ve had to flush my DNS cache every day, multiple times. Is there a way to solve this?

  10. Travis Bruno

    Nice article thank you!

  11. George


  12. Mac

    Hmmm… sorry, you may be wrong.

    1.) The host file is just a DNS client resolver cache. (

    2.) ipconfig registerdns renew the computer name registration on a DNS server.

    3.) Since Windows 10 administrative permissions is not needed for flushing DNS cache.

    Kind regards,

  13. Mac

    Hmmm… sorry, you may be wrong.

    1.) The host file is just a preload of DNS client resolver cache. Source:

    2.) ipconfig /registerdns renew the computer name registration on a DNS server. Source:

    3.) Since Windows 10 administrative permissions is not needed for flushing DNS cache. Source: myself 🙂

    Kind regards,

  14. You may have to run multiple scans.

    Download and run RKill:

    Then download and run Zemana Portable:

    Then run AdwCleaner too:

    Restart your PC and now if need be reset your browsers and check the addons.

  15. Maheshkumar Naragund

    Hi i am not able to clear DNS cache. Even after using ipconfig /flushdns command its showing some data if i use ipconfig /displaydns.. can any one help me

  16. After you do ‘ipconfig /flushdns’, don’t forget to clear the cache in your browser to see the effect of any DNS resolver changes, such as edits of your local HOSTS file. Also, note that you can always view the contents of the local DNS cache using command ‘ipconfig /displaydns > dns.txt’. The list will be in file dns.txt in the current folder.

  17. K_D_Queen

    How often should one preform this flush? Daily, Monthly—

  18. You may do it only if you are facing problems connecting to the internet or to some websites; else no need to.

Leave a Reply

Your email address will not be published. Required fields are marked *

4 + 4 =