How to Flush DNS Cache on Windows 10 and 11 [3 Easy Methods]

Deyan Georgiev
close Deyan Georgiev

Updated · Mar 28, 2023

Deyan Georgiev
Website Manager | Joined October 2021

Deyan has been fascinated by technology his whole life. From the first Tetris game all the way to Fa... | See full bio


Techjury is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission. Learn more.

If you're having trouble loading a website or viewing certain pages, you should first try clearing your DNS cache. This guide will show you how to flush the DNS cache on Windows 10 and 11.

Follow these simple steps, and you should be able to fix your problem in no time!

What Is a DNS Cache and Why Would You Need To Flush It?

Windows maintains a temporary database of all successful and unsuccessful website visits, called the DNS cache.

The DNS cache is a log of past DNS lookups that are stored by the operating system or by the web browser. By saving a local copy of a DNS lookup, your OS or browser can load websites much faster by quickly retrieving the corresponding IP address

In most cases, your Internet Service Provider automatically configures your connection to make it simpler for you to access websites and services that you frequently use.  It’s important to keep in mind that the DNS cache will eventually clear itself due to its TTL feature, so it’s not always necessary to do it manually.

Furthermore, although a DNS cache can speed up loading times, it might also pose security risks. So, flushing it can help address connectivity issues, data privacy concerns, or security threats. 

Here are some of the common reasons why you might want to clear your DNS cache:

  • 404 error appears on your screen when you try accessing sites
  • You want to avoid DNS spoofing
  • You can’t access a particular website
  • You wish to keep your search history confidential

How To Flush DNS Cache on Windows 11 and Windows 10

Through Run

  1. To bring up the Run window, press the Win+R keys.
  2. Type in ipconfig /flushdns and press Enter.

windows run application with a highlighted ipconfig /flushdns command and an arrow pointing at the ok button

Image credit:

  • A command window will display on the screen for a moment, and then the DNS resolver cache will be flushed.

Through the Command Prompt

  1. Type cmd into the Windows search bar.
  2. Right-click on the Command Prompt, and then select Run as Administrator.
  3. Type "ipconfig /flushdns" and hit Enter to execute the command.

windows command prompt program with an arrow pointing at the ipconfig /flushdns command

image credit:

  1. Restart your PC.
  • You should see a message confirming that the DNS resolver cache has been flushed.

Through PowerShell

  1. To open Windows PowerShell in Administrator mode, go through the Start menu search or use Run.
  2. You can open PowerShell by pressing Win+R , typing “powershell” into the Run window, and pressing Enter.
  3. To clear your DNS settings, open Windows PowerShell and type in Clear-DnsClientCache. Then, press Enter and wait for a few seconds.

the Clear-DnsClientCache command highlighted in the windows powershell program

Image credit:

  • Flushing the DNS cache will clear all current data so that new data can be generated the next time you go online.
  • If the prior methods don’t work, you can try restarting your router

Through Google Chrome

  1. Open Google Chrome
  2. Enter "chrome://net-internals/#dns" into the URL bar 
  3. Click the Clear Host Cache button

google chrome DNS settings with an arrow pointing at the clear host cache button

You might be interested in: How To Change DNS Servers on Windows 11?

Bottom Line

Following the simple steps explained in this guide, you’ll be able to flush DNS on Windows 11 and Windows 10 easily. By flushing the DNS cache, you can resolve the specific issues you might be experiencing with your network connection.


Is flushing my DNS cache safe?

There are no negative consequences to flushing your DNS cache. This tool removes outdated or invalid addresses, which can resolve connectivity issues and security risks.

Where are the DNS settings in Windows 11?

To find DNS settings on Windows 11, click the Windows 11 keyboard shortcut “Windows+I” to open the Settings app. From there, click Network & Internet, and then click Ethernet.

How do you flush the DNS cache on Windows 10 and 11?

If you’re wondering how to flush the DNS cache on Windows 10 and 11, you can do so through Run, the Command Prompt, Powershell, or through your browser.


Deyan Georgiev

Deyan Georgiev

Deyan has been fascinated by technology his whole life. From the first Tetris game all the way to Falcon Heavy. Working for TechJury is like a dream come true, combining both his passions – writing and technology. In his free time (which is pretty scarce, thanks to his three kids), Deyan enjoys traveling and exploring new places. Always with a few chargers and a couple of gadgets in the backpack. He makes mean dizzying Island Paradise cocktails too.

Leave your comment

Your email address will not be published.