HomeComputer3 Most Popular Methods to Clear DNS Cache in Windows 11

3 Most Popular Methods to Clear DNS Cache in Windows 11

Published on

Internet connection issues are a common occurrence on Windows computers, and there can be various reasons behind them. DNS cache, faulty network devices and corrupted Winsock settings are the main reasons for no or inconsistent internet connectivity on a Windows 11 PC. When websites are not reachable or internet connection is inconsistent, clearing DNS cache can fix the problem.

Three popular methods to clear DNS cache in Windows 11

Corrupted DNS cache is one of the main reasons for internet connection issues on a Windows 11 computer. In such cases you will not be able access certain websites. The solution to fix DNS (domain name system) related issue on a Windows 11 computer is to clear the DNS resolver cache.

There are the three most popular methods to clear the corrupted DNS cache on Windows 11, and you can try any one of them to fix the internet connection issue.

How to Clear DNS Cache in Windows 11

Method 1: Using Flusdns Command

1. Open Command Prompt as administrator on your computer.

2. Type “ipconfig /flushdns” (without quote) in the Command Prompt and press Enter.

Flushdns command to clear DNS cache in Windows 11

3. It will clear the DNS cache on your Windows computer.

Method 2: Using DnsClientCache PowerShell command

1. Open PowerShell as administrator on your computer.

2. Enter the command “Clear-DnsClientCache” and press Enter.

DnsClientCache PowerShell command to clear DNS cache in Windows 11

3. It will flush the DNS resolver cache on your Windows PC.

[The command will execute successfully without displaying any message]

Method 3: Using the Run Command Box

1. Open the Run command box using the Win + R shortcut key.

2. Next, type “ipconfig /flushdns” command.

3. Now, press Ctrl + Shift + Enter keys together.

Using Run Command box to clear DNS cache in Windows 11

4. The Command Prompt will launch, execute the flush command, and close automatically.

How to View DNS Cache in Windows 11?

If you want to see the DNS cache stored on your Windows 11 PC, you can use the “displaydns” command. Open the Command Prompt, type in “ipconfig /displaydns” and press Enter. This will display all the DNS content.

You can export DNS content to a text file using the command “ipconfig /displaydns > dnscachecontents.txt“. This will save the DNS cache contents to a text document in the current folder.

Explore More:

Ishanvi
Ishanvi
Ishanvi is a backend software engineer who mentors others to grow, combining deep technical expertise with a focus on practical, impactful solutions, continuous learning, and helping teams work smarter.

Latest articles

Embed YouTube Videos in Excel Spreadsheets: A Step-by-Step Guide

By adding videos in your Excel spreadsheet you can explain what your spreadsheet data...

How to Create Professional Name Stickers in Microsoft Word

Microsoft Word is an excellent tool for designing and printing custom name stickers at...

Learn How to Use VLOOKUP in Google Sheets: A Practical Guide for Beginners

VLOOKUP or vertical lookup in Google Sheets ia s search and retrieve function for...

Can Google Sheets Be Password Protected? A Complete Guide

Can Google Sheets be password protected? The short answer is Yes, but not in...