How to Flush or Clear DNS Cache in Windows

This brief tutorial shows students and new users how to flush DNS Resolver cache in Windows 10.

Once in a while Windows behaves strangely and stops resolving or opening up websites you want to visit. This doesn’t happen very often, but when it does, flushing Windows DNS resolver cache might help in this situation.

A DNS resolver is a temporary database that contains websites and other network resources that you have visited or opened on your computer. When you first visit a new website or a site you haven’t visited before, Windows, sends a request for the site’s details, including unique IP addresses.

These records are kept temporary in the DNS resolver so that the next time you which to visit the same site you visited previously, your computer will already have a record in its database. This help speed up the process of your computer connecting to the websites you want to revisit.

Sometimes, this temporary database gets corrupted and stops processing correctly. If that happens, you may want to clear out its temporary cache of all the records so that it can start rebuilding with new records.

To get started with flushing Windows DNS resolver cache, follow the steps below:

Flush Windows DNS Cache via command line

The quickest way to flush or clear Windows DNS cache is via Windows command prompt. Open the Command prompt and run the command below to do so.

You can use Windows search box at the bottom left to search for Command Prompt.

When the command prompt opens, type the commands below to flush Windows DNS cache.

ipconfig /flushdns

Flush Windows DNS Cache via PowerShell

You can also use Windows PowerShell console to flush its DNS cache. Use the search box to locate PowerShell, then type the commands below to flush its cache.


Clear Host Resolver Cache in Microsoft Edge

After clearing Windows DNS cache, you should also clear the host resolve cache in your browser, especially when you’re having trouble visiting websites online.

To clear the cache in Microsoft Edge browser, open it and type the line below inside the address box, and press Enter.


The click the button to clear the host resolver cache.

Clear Host Resolver Cache in Chrome

If you’re using Google Chrome browser, then type the line below instead.


The clear the resolver cache and you’re done.

Clear Host Resolver Cache in Firefox

In Firefox, type this:


That should help resolve many DNS caching issues in Windows.


This post showed you how to flush or clear Windows DNS resolver cache in Windows. If you find any error above, please use the comment form below to report.