How to flush DNS cache in Windows 11 ?

Are you having connection problems? Unable to access certain websites? Do you always get an error (This site is inaccessible – DNS_PROBE_STARTED/DNS_PROBE_FINISHED_BAD_CONFIG)? The problem may be caused by an outdated or corrupted local DNS cache. In most cases, these issues can be fixed by clearing the DNS cache in Windows 11 . This is called flushing the DNS cache (or Flush DNS ).

There are several methods to Flush DNS cache in Windows 11“>Windows 11 . You can use Command Prompt, Windows PowerShell, Run command or do it directly in your web browser (Chrome, Firefox, Opera, Safari, etc.).

Flushing DNS cache in Windows 11 is a very simple process that does not require any special skills. In this article, we are going to see together the different methods that allow you to flush the DNS cache on your Windows 11 PC. Follow the few detailed steps carefully and you should be fine ????. Let’s go !

  1. What is DNS caching?
  2. Why flush the DNS cache?
  3. Flush DNS cache in Windows 11
    1. Via Command Prompt
    2. Via Windows PowerShell
    3. Via the Run command
  4. Clear DNS cache in your web browser
    1. In Google Chrome
    2. In Mozilla Firefox

What is DNS caching?

DNS means Domain Name System which can be translated into French as “domain name system”. The main function of DNS is to translate domain names (for example, into IP addresses (

When you browse the Internet, your web browser queries the DNS servers (sort of directories) configured on your device to retrieve the IP addresses of the pages you want to access.

After your device connects to the website, your computer stores information in a temporary file called a “DNS cache”. The DNS cache contains the domain names and IP addresses of websites you have visited .

See also  How to install Windows 11 without signing into Microsoft account

This file allows your computer to avoid querying DNS servers every time you try to visit the same websites. Instead, your computer will refer to the DNS cache to more quickly resolve domain names to IP addresses . Thus, the loading time of the websites you are used to visiting will be much faster.

That’s it, now you know what the DNS cache is for. Now let’s see the importance of flushing the DNS cache from time to time.

Why flush the DNS cache?

Your computer automatically and periodically updates the DNS cache. However, over time, the DNS cache may have unnecessary or corrupted records with erroneous information . This can cause slowdowns or prevent access to certain websites.

Indeed, it is possible that websites that you used to visit change their domain name or IP address due to a change of host, for example. Existing data in the DNS cache therefore becomes stale or invalid. And as a result, you will no longer be able to access the websites in question.

Flushing the DNS cache is like deleting all the IP addresses associated with the domain names you have visited. Thus, DNS records start from scratch so that your computer has the latest updates. This step may resolve possible problems connecting to certain websites.

Now that you know why it is important to flush DNS cache, let’s move on to the practical part: how to Flush DNS cache in Windows 11 .

Flush DNS cache in Windows 11

Below are the different methods to delete or flush DNS cache on Windows 11. No matter which method you choose, the result will be the same.

Via Command Prompt

You can use Command Prompt to delete or reset the DNS cache in Windows 11. To do this, follow these steps:

See also  Windows 11: you need at least an SSD and a Ryzen 3000 to run Android applications

1. First, open a Command Prompt window as an administrator. To do this, click on the Start menu, then search for “Command Prompt” or ” cmd “. Next, select the “ Run as administrator ” option from the right pane.

2. Before flushing the DNS cache, you can view all current DNS entries saved on your Windows computer . To do this, type or copy/paste the following command and press Entrée.

ipconfig /displaydns
Show DNS box on Windows 11

As you can see, this command displays all DNS information on your computer. If you just want to flush the DNS cache, use the command below.

3. To flush the DNS cache , type or copy/paste the following command in the command prompt:

ipconfig /flushdns

When the task is complete, you will receive a message that the DNS resolver cache was successfully flushed .

Flush DNS cache using Command Prompt in Windows 11

If you have connectivity problems with only a certain website, then stopping the DNS for the current session may fix the issue. To turn off the DNS caching temporarily, enter the below command:

net stop dns cache

To turn on the DNS cache back again, enter this command:

net start dnscache

Via Windows PowerShell

The second method to flush DNS in Windows 11 is to use the Windows PowerShell. Here’s how.

1. Open the Windows PowerShell in administrator mode . To do this, right-click on the Start menu or press the Windows+ keys simultaneously X, then click on “ Windows Terminal (administrator) ”.

2. Type or copy and paste the following command into the Windows PowerShell window, and then press Entrée.

Flush DNS cache with Windows PowerShell on Windows 11

Unlike Command Prompt, you won’t get a message that tells you the DNS cache has been successfully deleted.

Via the Run command

Another easy way to flush the DNS cache is to use the Run command. Here’s how.

See also  Add Copy/Move to Folder to Windows 11 context menu

1. Open the Run command by pressing the Windows+ keys simultaneously R.

2. Then type the following command and click “ OK ” or press Entrée.

Clear DNS cache with Run command

This will clear the DNS cache on your Windows 11 PC.

Clear DNS cache in your web browser

Web browsers such as Google Chrome and Firefox register their own DNS cache. And you should know that the DNS cache saved by your web browser may be different from that of Windows 11. So if a particular website is not working on Google Chrome, but opens with another browser, you can clear the Chrome browser’s DNS cache to potentially fix the issue. Of course, this is only an example, but you have understood the principle.

In Google Chrome

1. Begin by launching the Google Chrome web browser.

2. Next, type or copy and paste the following URL into the address bar and tap Entrée.


3. Finally, click on the “ Clear host cache ” button to clear the DNS cache in Google Chrome.

Flush DNS cache in Google Chrome

In Mozilla Firefox

To empty the DNS cache in Firefox , the principle is the same as with the Chrome browser.

1. Open Mozilla Firefox web browser on your computer.

2. Type or copy and paste the following URL into the address bar and press Entrée.


3. Finally, click the “ Clear DNS Cache ” button to clear the DNS cache in Firefox.

Flush DNS Cache in Firefox

That’s it, you now know the different methods to flush the DNS cache (DNS flush) on your Windows 11 PC. ????

If you liked this article, please subscribe to our reddit community to discuss it. You can also find us on Twitter and Facebook.

5/5 - (1 vote)

Newsletter Updates

Enter your email address below to subscribe to our newsletter

Leave a Reply