How to Clear DNS Cache Windows 11: A Step-by-Step Guide

Clearing the DNS cache on Windows 11 is a straightforward process that can help resolve internet connectivity issues. The DNS cache stores information about previous DNS lookups, and clearing it can fix problems like website loading errors. In just a few steps, you can reset the DNS cache and improve your browsing experience.

How to Clear DNS Cache on Windows 11

Clearing the DNS cache on Windows 11 accomplishes the task of resetting the stored DNS lookup information. This can help resolve any issues caused by outdated or corrupted cache entries. Follow these steps to clear your DNS cache.

Step 1: Open Command Prompt

Press the Windows key on your keyboard, type "cmd," and select "Run as administrator."

Opening Command Prompt with administrative privileges is necessary to execute the command that clears the DNS cache. This ensures that the system has the required permissions to perform the task.

Step 2: Confirm UAC Prompt

When the User Account Control (UAC) prompt appears, click "Yes" to proceed.

The UAC prompt is a security feature that prevents unauthorized changes to the system. By confirming, you allow the Command Prompt to run with elevated privileges.

Step 3: Enter DNS Flush Command

In the Command Prompt window, type the command ipconfig /flushdns and press Enter.

This command instructs Windows 11 to clear the DNS cache. The system will process the command and refresh the DNS lookup information.

Step 4: Verify Successful Cache Flush

After executing the command, you should see a message stating, "Successfully flushed the DNS Resolver Cache."

This message confirms that the DNS cache has been cleared. If you see an error message instead, ensure you ran Command Prompt as an administrator and try again.

Step 5: Close the Command Prompt

Type exit in the Command Prompt window and press Enter, or simply close the window.

Closing the Command Prompt completes the process. You can now test your internet connection to see if the issue has been resolved.

After clearing the DNS cache, any DNS-related issues should be resolved. Your system will now perform DNS lookups afresh, potentially speeding up your internet connection and fixing loading errors.

Tips for Clearing DNS Cache on Windows 11

  • Run as Administrator: Always run the Command Prompt as an administrator to ensure you have the necessary permissions.
  • Check Internet Connection: Verify your internet connection before and after clearing the DNS cache to see if the issue persists.
  • Reboot if Needed: Restart your computer if the problem isn’t resolved immediately after clearing the DNS cache.
  • Stay Updated: Keep your Windows 11 updated to avoid any potential bugs that might cause DNS issues.
  • Use Safe Commands: Stick to safe and recognized commands like ipconfig /flushdns to avoid causing system issues.

Frequently Asked Questions

What is DNS cache?

DNS cache is a temporary database maintained by your computer. It stores information about previous DNS lookups, which helps speed up future requests.

Why should I clear my DNS cache?

Clearing the DNS cache can resolve internet connectivity issues, such as websites not loading or taking too long to load.

How often should I clear my DNS cache?

There’s no fixed schedule for clearing the DNS cache. Do it when you encounter browsing issues or after changing DNS settings.

Can clearing DNS cache affect my computer negatively?

No, clearing the DNS cache won’t negatively affect your computer. It simply removes outdated entries and can help fix connectivity issues.

What if clearing DNS cache doesn’t fix my problem?

If clearing the DNS cache doesn’t resolve your issue, consider rebooting your router or checking for other network problems.


  1. Open Command Prompt.
  2. Confirm UAC Prompt.
  3. Enter DNS Flush Command.
  4. Verify Successful Cache Flush.
  5. Close the Command Prompt.


Clearing the DNS cache on Windows 11 is a simple yet powerful way to solve internet connectivity problems. By following the steps outlined above, you can refresh your DNS lookup information and potentially speed up your browsing experience. Remember, keeping your system updated and performing regular checks can help maintain an optimal internet connection. If you continue to face issues, consider exploring further troubleshooting steps or seeking help from a professional.

Now that you know how to clear the DNS cache on Windows 11, try it out the next time you face connectivity issues. It’s a quick and easy fix that can save you a lot of frustration. For more tips and tricks on managing your Windows 11 system, stay tuned to our future articles!

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy