How to flush the DNS cache in Windows 11

If you are having trouble accessing some websites or applications, one way to fix it is by flushing the DNS cache on your computer. The way you do it depends on the device you are using because it will vary from Windows to Mac and Chrome OS to Linux. In this article, we will show you how to flush the DNS cache in Windows 11. We will also tell you all about the DNS cache and how cleaning it can help you troubleshoot random connectivity issues.

Flush DNS cache in Windows 11 (2021)

If you are having connectivity issues even after deleting temporary files and clearing the application cache on your Windows 11 computer, the underlying problem could be with the way the network is configured. To correct it, you need to clear the DNS resolver configuration on your computer. Best practice dictates that you also restart your modem and router to clear all cached DNS settings. With that said, let’s get started:

Note : This tutorial focuses on flushing DNS cache on Windows 11. For other platforms, see how to flush DNS cache on Android and clear DNS cache on macOS devices.

What is DNS cache and why should you care?

The DNS cache is a file that includes the host names and IP addresses of the websites that you have visited on your computer. As the name suggests, it caches the web page, which makes the site load faster the next time you open it. The caches are located on the client computer, as well as on the servers of the ISP (Internet Service Provider).

While most Internet-connected systems automatically update the cache and hostname, problems arise when the IP address of a web page changes before the update. That’s when you may have connectivity issues, and the page won’t load in your browser. Clearing the DNS cache removes all stored (cached) information, forcing the computer to retrieve relevant new data instead of handing over old and outdated data.

Steps to flush DNS cache in Windows 11

Note : This guide only deals with clearing the DNS cache. To change your DNS service provider, check out our detailed tutorials on how to change DNS settings in Windows.

Method 1: using the command prompt

  • First, open a command prompt window in Administrator mode. To do this, search for ” cmd” (Without quotes) in the Windows search bar and select Run as administrator .
  • Now, copy and paste the following command: ipconfig /flushdnsand press Enter to flush the DNS cache on your Windows 11 computer. You will receive a message that the operation was successful.

Method 2: use Windows PowerShell

Another way to flush DNS cache on Windows 11 PC is by using PowerShell. This is how you do it:

  • Open Windows PowerShell in Administrator mode on your Windows PC. To do this, search for “powershell” in the Windows search bar and click Run as administrator.
  • In the PowerShell window, copy and paste the following command and press Enter: Clear-DnsClientCache. This will clear the DNS cache of your Windows 11 computer instantly.

Method 3: use a Run command

You can also clear the DNS cache directly from the Run dialog without opening a command prompt or PowerShell. This is probably the easiest way to clear the DNS cache on a Windows computer, and this is how it works:

  • Open the Run box using the Windows 11 keyboard shortcut Windows key + R. Now, type the following command: ipconfig /flushdnsand hit Enter. This will flush the DNS cache on your Windows 11 computer.

Method 4: use a batch file

Finally, if you prefer to automate the process of flushing the DNS cache on your Windows PC, you can create and use a batch file for this purpose. So, download this batch file and run it to clear DNS cache in Windows 11.

A batch file, in case you don’t know, includes a set of commands and you can run the file at scheduled intervals or on demand to run those commands. For more information, see our in-depth article on batch files and how to use them to automate tasks in Windows.

Clear DNS cache in Chrome

Some Windows applications, including Google Chrome, have their own DNS caches. It is independent of the DNS cache stored by your operating system. In these cases, you will also have to clear the DNS cache for these applications. For Google Chrome, this is how it’s done:

  • First, open Google Chrome on your computer. Now copy and paste the following URL into the address bar of the browser: chrome://net-internals/#dnsand hit Enter. The DNS tab of Chrome’s “internal net” page will load. Here, click the ” Clear Host Cache” button to clear Chrome’s DNS resolver cache.

Flush DNS cache to resolve connectivity issues in Windows 11

Clearing your DNS cache may sound like a lot of tech jargon, but it’s an easy task, as you already know. There are several ways to flush the DNS cache on Windows 11 PCs, including using the command prompt, PowerShell, and the Run command. So go ahead and flush cached DNS data on your Windows 11 computer to fix any underlying connectivity issues and improve your privacy. Once you do, check out some of our other DNS-related articles, including the best DNS servers you can use and the difference between VPN and DNS.

Leave a Comment