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.
- Press the Windows key on your keyboard.
- Type cmd on the search bar.
- Right click on Command Prompt and click Run as administrator.
- In the command prompt, type ipconfig /flushdns and hit Enter.
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.
- Open Windows Powershell on your Windows 10 computer.
- Type Clear-DnsClientCache and hit Enter.
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.
Uchchash is a tech-obsessed guy and the man behind ansmehow. He spends most of his time on the internet. After failing dozens of times, ansmehow is where he permanently settled down.