If you’re having trouble accessing some websites or apps, one way to solve it is to flush your computer’s DNS cache. How you do this depends on the device you are using. This is because it varies from Windows to Windows and from Chrome OS to Chrome OS. This article will show you how to flush the DNS cache in Windows 11. It also describes the DNS cache and how to flush it to fix random connection issues.
- 1 Flush the DNS cache in Windows 11 (2021)
- 2 Flush DNS cache to resolve Windows 11 connectivity issues
Flush the DNS cache in Windows 11 (2021)
If you still have connectivity issues after deleting temporary files and clearing the app cache on your Windows 11 computer, there may be a problem with how your network is configured. To fix it DNS resolver needs to be flushed Computer settings. As a best practice, you should also restart your modem and router to clear all cached DNS settings. That said, let’s get started:
Note: This tutorial focuses on flushing the DNS cache on Windows 11. For other platforms, see how to flush the DNS cache on Android and clear the DNS cache on macOS devices...
What is a DNS cache? Why do you need to care?
The DNS cache is a file that contains the host name and IP address of the website you visited on your computer. As the name implies, it caches web pages. This will make the site load faster the next time you open it. The cache is located on the client computer and on the server of your ISP (Internet Service Provider).
Most systems connected to the Internet update their caches and hostnames automatically, but problems occur if the web page’s IP address changes before the update. In that case, the page may not load in your browser and you may experience connectivity issues. Flushing the DNS cache deletes all stored (cached) information. This requires the computer to retrieve relevant new data rather than providing old and old data.
Steps to flush DNS cache in Windows 11
Note: This guide only covers clearing the DNS cache. To change your DNS service provider, check out our detailed tutorial on how to change your DNS settings in Windows.
Method 1: Use the command prompt
- First, open a command prompt window in administrator mode. To do this,cmdSelect “” (without quotes) in the Windows search bar Run as administrator..
- Then copy and paste the following command:
ipconfig /flushdnsPress Enter to flush the DNS cache on your Windows 11 computer. A message is displayed indicating that the operation was successful.
Method 2: Use Windows PowerShell
Another way to flush the DNS cache on a Windows 11 PC is to use PowerShell. Here’s how to do this:
- Open Windows PowerShell in administrator mode on your Windows PC.To do this, search for and click “powershell” in the Windows search bar Run as administrator..
- In the PowerShell window, copy and paste the following command and press Enter.
Clear-DnsClientCache.. This will instantly clear the DNS cache on your Windows 11 computer.
Method 3: Use the execute command
Without opening a command prompt or PowerShell[ファイル名を指定して実行]You can also clear the DNS cache directly from the dialog box. This is the easiest way to clear the DNS cache on a Windows computer, and how it works is as follows:
- Using the Windows 11 keyboard shortcut Windows key + R,[実行]Open the box. Then enter the following command:
ipconfig /flushdnsPress Enter. This will flush the DNS cache on your Windows 11 computer.
Method 4: Use a batch file
Finally, if you want to automate the process of flushing your DNS cache on your Windows PC, you can create and use a batch file for that purpose. Therefore, download and run this batch file to clear your Windows 11 DNS cache.
A batch file contains a set of commands in case you don’t know, and you can run the files at scheduled intervals or run them on demand. For more information, check out the detailed articles about batch files and how to use them to automate tasks in Windows.
Clear DNS cache in Chrome
Some Windows apps, including Google Chrome, have their own DNS cache. This is separate from the DNS cache stored by the operating system. In such cases, you should also clear the DNS cache for these applications. For Google Chrome, do the following:
- First, open Google Chrome on your computer. Then copy and paste the following URL into your browser’s address bar.
chrome://net-internals/#dnsPress Enter. The DNS tab of Chrome’s “Inside the Net” page is loaded. here,”Clear host cacheClick the button to clear Chrome’s DNS resolver cache.
Flush DNS cache to resolve Windows 11 connectivity issues
Flushing the DNS cache may sound like a technical term, but as you know, it’s easy to do. There are multiple ways to flush the DNS cache on a Windows 11 PC, including using the command prompt, PowerShell, and Run command. Therefore, go ahead and flush the cached DNS data on your Windows 11 computer to fix the underlying connection issue and improve your privacy. Once that’s done, check out some of the other DNS-related articles, including the best DNS servers you can use and the differences between VPN and DNS.