How to Clear The Dns Cache in Microsoft Windows

DNS (Domain Name System) is an important component of the internet that translates domain names into IP addresses. Sometimes, DNS cache entries can become outdated or corrupted, resulting in connection issues or slow response times. To fix this, you can clear the DNS cache in Microsoft Windows. In this guide, we will show you how to do this in a few simple steps.

Step 1: Open the Command Prompt

The first step is to open the Command Prompt. To do this, click on the Start menu and search for “cmd”. Click on the “Command Prompt” result to open it.

See also  How to Setup psacct or acct - Monitor User Activity in Linux

Step 2: Flush the DNS Cache

Next, you need to flush the DNS cache. To do this, type the following command in the Command Prompt and press Enter:

ipconfig /flushdns

This command will clear the DNS cache on your computer.

C:\>ipconfig /flushdns
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

Step 3: Verify the DNS Cache is Cleared

Finally, you can verify that the DNS cache has been cleared by running the following command in the Command Prompt:

ipconfig /displaydns

This command will display the contents of the DNS cache. If the cache has been cleared successfully, you should see a message that says “Could not display the DNS Resolver Cache”.

See also  How to Check GCC Version on a Linux Server ?

Commands Mentioned:

  • ipconfig /flushdns – Flush the DNS cache
  • ipconfig /displaydns – Display the contents of the DNS cache


In this guide, we have shown you how to clear the DNS cache in Microsoft Windows using the Command Prompt. By following these simple steps, you can fix connection issues and improve the performance of your computer. If you have any comments or suggestions for improvements, please feel free to share them below.


Leave a Reply

Your email address will not be published. Required fields are marked *