Your Search Bar For Shrewd Tips

How Do I Clear Dns Cache Windows 11?


If a website will not load, opens at the wrong address, or seems stuck after you changed its DNS settings, clearing the DNS cache may help. Windows 11 stores recent DNS lookups so it can connect to websites faster. Sometimes those saved records become outdated, and your computer may keep trying to reach an old or incorrect address. This guide explains how to clear the DNS cache in Windows 11 using Command Prompt, Windows Terminal, or PowerShell, and what to try if the problem continues.

What Is the DNS Cache in Windows 11?

The Domain Name System, or DNS, translates website names such as example.com into the numerical IP addresses computers use to connect to servers. Rather than looking up an address every time you visit a site, Windows can temporarily save the result in a local DNS cache. This can make repeat connections faster.

A cached DNS record can occasionally be out of date. For example, a website may have moved to a new server, your network settings may have changed, or an old lookup may no longer point to the right destination. Clearing the DNS cache removes those locally saved records. Windows can then request fresh DNS information the next time you visit a website.

Flushing the DNS cache does not delete your files, bookmarks, saved passwords, or browsing history. It also does not change your internet provider or permanently change your DNS server. It simply clears saved DNS lookup information on your Windows 11 device.

How to Clear the DNS Cache in Windows 11 with Command Prompt

The quickest way to clear the Windows 11 DNS cache is to run the ipconfig /flushdns command. Follow these steps:

  • Open the Start menu.
  • Type Command Prompt in the search box.
  • Select Run as administrator. If Windows asks for permission, choose Yes.
  • In the Command Prompt window, type ipconfig /flushdns.
  • Press Enter.

If the command works, Windows will display a message confirming that the DNS Resolver Cache was successfully flushed. You can close Command Prompt and try loading the website again.

On many Windows 11 systems, the command also works in a regular Command Prompt window without administrator access. If you receive an access or permissions message, close the window and reopen Command Prompt using Run as administrator.

Clear the DNS Cache Using Windows Terminal

Windows Terminal is another convenient option. It can open Command Prompt or PowerShell tabs, and either shell can run a command to clear the Windows DNS cache.

  • Right-click the Start button, or press Windows key + X.
  • Select Terminal (Admin) or Windows Terminal (Admin), depending on your Windows 11 version.
  • Approve the User Account Control prompt if it appears.
  • Enter ipconfig /flushdns and press Enter.
  • Look for the confirmation message that the DNS Resolver Cache was flushed.

If Terminal opens in PowerShell, you can use the PowerShell command described below instead. Both methods clear the Windows DNS client cache. You do not need to run both commands.

How to Flush DNS Cache in Windows 11 with PowerShell

PowerShell includes a command specifically for clearing the DNS client cache. To use it, open PowerShell or Windows Terminal with administrator privileges, then run:

Clear-DnsClientCache

Press Enter after typing the command. PowerShell may return to the prompt without showing a success message; that is normal. You can also use the Command Prompt command, ipconfig /flushdns, from a PowerShell window.

If PowerShell reports that the command is not recognized, check that you are using the built-in Windows PowerShell or a current PowerShell environment. As an alternative, run ipconfig /flushdns in Command Prompt or Windows Terminal.

How to Confirm the DNS Cache Was Cleared

The simplest confirmation is the success message shown after running ipconfig /flushdns. You can also inspect the cache before or after clearing it with this command:

ipconfig /displaydns

This displays DNS records currently stored by the Windows DNS client. Immediately after flushing, the list may be empty or contain only a small number of records. Windows and your applications will add records again as they make new connections, so the cache will not necessarily stay empty.

There is usually no need to check the cache to complete the process. If Windows confirms that the cache was flushed, try the website or application that was having trouble.

Clear a Browser’s DNS Cache Separately

Flushing the Windows DNS cache does not always clear DNS information kept separately by a web browser. If a site still behaves as if it is using an old address, you can try clearing the browser’s internal DNS cache as well. Browser options and internal pages may change between versions, so use these steps only if the relevant page is available in your browser.

  • Google Chrome: Enter chrome://net-internals/#dns in the address bar and look for an option to clear the host cache.
  • Microsoft Edge: Enter edge://net-internals/#dns in the address bar and look for an option to clear the host cache.
  • Other browsers: Check the browser’s current help documentation or settings for DNS, network, or connection cache options.

You can also fully close and reopen the browser after flushing the Windows cache. If a website remains unavailable, clearing cookies or all browsing data is generally not the first step to try; those actions affect other saved browser information and may not solve a DNS issue.

When Should You Clear the DNS Cache?

Clearing the DNS cache is a useful troubleshooting step when Windows appears to be using an outdated website address. It may help after certain network changes, but it is not a fix for every internet connection problem.

  • A website recently changed servers or its DNS records were updated.
  • You changed DNS settings on your PC or network and want Windows to request fresh records.
  • A particular website does not load, while other sites work normally.
  • You see an error suggesting the server address cannot be found.
  • A site loads on another device but not on your Windows 11 computer.
  • You are troubleshooting a domain or website that recently became available again.

DNS changes can take time to spread across the internet, and different networks may receive updated information at different times. Flushing your local cache can remove an outdated record saved on your PC, but it cannot force every DNS server to update immediately.

What to Do If Flushing DNS Does Not Fix the Problem

If the website still will not load, work through a few basic checks before changing advanced network settings. The problem may be in your browser, network connection, router, DNS provider, or the website itself.

  • Check other websites. If no sites load, the issue may be your internet connection rather than one DNS record.
  • Try another browser or device. This can help determine whether the issue is limited to one browser or computer.
  • Restart your browser. Close all browser windows and reopen the browser to refresh its network state.
  • Restart your router. If several devices on the same network have trouble, restarting the router may help. Follow the manufacturer’s instructions and allow it to reconnect fully.
  • Reconnect to your network. Disconnect and reconnect to Wi-Fi, or check that an Ethernet cable is firmly connected.
  • Check the website address. A typo or obsolete link can look like a DNS problem.
  • Check for service outages. The website itself, your DNS provider, or your internet provider may be experiencing an issue.

You can also renew your computer’s IP configuration as a separate troubleshooting step. In an administrator Command Prompt, run ipconfig /release and then ipconfig /renew. These commands briefly disconnect and reconnect the computer’s network configuration, so do not use them if you are working over a connection that must stay uninterrupted. They are not required just to flush the DNS cache.

Is It Safe to Flush DNS in Windows 11?

Yes. Clearing the DNS cache is a routine, low-risk troubleshooting step. Windows will create new cache entries as you browse, so you do not need to manually restore anything. The first visit to a site after clearing the cache may take slightly longer while Windows looks up its address again.

Flushing DNS is different from resetting your network, changing your DNS provider, or deleting browser data. If you only want Windows to discard saved DNS lookups, use ipconfig /flushdns or Clear-DnsClientCache. Avoid broader reset options unless you have a specific reason to use them.

Conclusion

To clear the DNS cache in Windows 11, open Command Prompt or Windows Terminal, run ipconfig /flushdns, and check for the success message. You can also use Clear-DnsClientCache in PowerShell. The process removes saved DNS lookups so Windows can request fresh records, which may resolve problems caused by outdated website addresses. If the issue continues, check the browser, network connection, router, and website before making more extensive changes.


Disclaimer: Articles are written by Humans, AI or Both. Verify Important information.

Shrewdnia

Shrewdnia

Shrewdnia is a destination for curious minds seeking clarity, knowledge, and informed perspectives. Through insightful articles and practical guides our passionate team explores a wide range of topics designed to help readers understand the world around them, make smarter decisions, and stay informed in an ever-changing landscape.


💡 Every question sparks discovery, and every perspective enriches the conversation. Share your thoughts and insights in the comments 👇

Back to blog

Leave a comment

JOIN THE SHREWDNIA COMMUNITY FORUM

What do you think?

Have an opinion, experience, or question about this topic? Join the Shrewdnia Forum and share your thoughts with other readers.

Join the Forum →