DNS cache (or called DNS resolver cache) stores all the recently visited websites information. This is used to faster retrieval of the website when you access the same website next time.

DNS cache contains Record Name, Record Type, Time to Live, Data Length, Section, A Record, Cname Record, and more. To display DNS cache use ipconfig /displaydns command from Powershell/CMD.

Flushing DNS may slow down when you access the website. But can access much faster when you access it next time.

This tutorial shows how to flush the DNS cache in Windows 10/11.

Flush DNS cache in Windows

These steps will guide you to flush the DNS cache in Windows 10/11:

  1. Search and open Windows PowerShell on the taskbar search icon.
  2. To flush the DNS Cache, run:
ipconfig /flushdns
Flush DNS cache via PowerShell

3. The command will report back with "Successfully flushed the DNS Resolver Cache."

The same command works with CMD as well.

What will flush DNS do?

Flushing DNS will clear any IP addresses or other DNS records from your cache. This can help resolve security, internet connectivity, and other issues.

Why flush the DNS Cache?

Here are a few reasons:

  • Remove outdated information of visited websites
  • Ensure quick access of correct websites
  • Improve privacy by erasing address history
  • Prevent security attempts such as DNS poisoning or spoofing

Is flushing DNS bad?

Flushing DNS is safe and doesn’t have any negative side effects. After clearing the cache, the site might be a little slower than usual but will speed up again after.

Does flushing DNS speed up internet?

No.  Every time you visit a website, its IP will be stored in your DNS cache. Flushing DNS will delete the stored DNS information from the cache. This means, the site might be a little slower on your first visit but will speed up again after.


In this short article, you've learned how to flush a DNS cache as a troubleshooting method in Windows 10/11.