How to flush DNS in Windows 10

While we type domain names on our web browsers, the browser connects to the DNS of a domain name, which tells the website IP address to the browser. Sometimes while browsing various websites you may face DNS-related issues.

If you are using Windows 10 or any older version of Windows, you can flush dns which will clear the saved DNS on your operating system. And, it will take only a minute to flush DNS in Windows 10/8/7

How to flush DNS in Windows 10/8/7

You can either do it from Command Prompt, or you can use Powershell to flush DNS. I will show you both methods. 

Flush DNS using CMD

It’s very easy and available for all versions of Windows. Because every Windows computer has a command prompt pre-built. 

  1. Press the Windows key on your keyboard. 
  2. Type cmd on the search bar. 
  3. Right click on Command Prompt and click Run as administrator
  4. In the command prompt, type ipconfig /flushdns and hit Enter.
How to flush dns in windows 10

And within a second, the cached DNS will be flushed. After flushing DNS, your browser will connect to the DNS and find out the current IP of any website. 

Flush DNS using Windows Powershell

Powershell is available on Windows 10 and it’s a powerful tool. You can also use it instead of Command Prompt to clear DNS cache. 

  1. Open Windows Powershell on your Windows 10 computer. 
  2. Type Clear-DnsClientCache and hit Enter. 
Flush DNS PowerShell

Now let’s know what a DNS resolver cache is and why it’s important. As well as, we will learn how flushing dns can solve browsing errors. 

What is a DNS resolver cache?

A domain is nothing but a memorable name of some IPs. When we type a domain name, the browser connects to the IP address. But the website’s IP addresses are covered by DNS. So, your browser first interacts with the DNS to figure out the IP address of a website. DNS caching actually saves the DNS on your computer. So that next time when you try to visit the same site, it can act faster. 

What causes DNS errors?

If the IP addresses of a website are changed for some reason, you won’t be able to access the site. As your browser is trying to access the website through saved DNS on your computer. 

Will flushing solve DNS issues?

Absolutely. After clearing the DNS cache, there will be nothing saved on your computer. So your browser has to find the current DNS and IP address of a website.

How to check saved DNS cache?

You can check all saved DNS cache of your computer. Again, you can check them from the command prompt or powershell.

  • In your command prompt, type ipconfig /displaydns and press Enter.
  • In Powershell, type Get-DnsClientCache and press Enter.

Leave a Comment