Your Search Bar For Shrewd Tips

How Do I Clear Dns Cache In Windows?


If a website will not load, opens at an old address, or behaves differently from other sites, your Windows computer may be using an outdated DNS record. Clearing the DNS cache is a quick troubleshooting step that makes Windows look up fresh DNS information the next time you visit a domain. In most cases, you can do it with one command in Command Prompt or Windows Terminal.

This guide explains how to clear the DNS cache in Windows 11 and Windows 10, how to check whether the command worked, and what to try if the problem continues. It also covers what flushing DNS does—and what it does not do—so you can choose the right next step.

What Is the Windows DNS Cache?

DNS, or the Domain Name System, translates a website name such as example.com into an IP address that your computer can use to connect to the website. To avoid looking up the same address repeatedly, Windows temporarily keeps some DNS results in a local cache.

The cache can make repeat visits faster, but an entry may sometimes be outdated or incorrect. For example, a website may have moved to a new server, a network setting may have changed, or Windows may have cached a failed lookup. Clearing the cache removes these locally stored DNS results. Windows then requests fresh information when an application needs to reach a domain.

Flushing the cache is generally safe. It does not delete your files, saved passwords, browsing history, or internet settings. The first visit to a site after clearing the cache may take slightly longer while Windows retrieves a new DNS result.

How to Clear DNS Cache in Windows 11 or Windows 10

The quickest method is to run the ipconfig /flushdns command in an elevated Command Prompt or Windows Terminal. The steps are nearly the same in Windows 11 and Windows 10.

  • Open the Start menu.
  • Type Command Prompt or Windows Terminal in the search box.
  • Right-click the result and select Run as administrator. If Windows asks for permission, select Yes.
  • In the command window, type the following command:
ipconfig /flushdns
  • Press Enter.
  • Look for a confirmation message saying that the DNS Resolver Cache was successfully flushed.

Once you see the confirmation, close the window and try the website or application again. You usually do not need to restart your computer. If the command reports that the operation requires elevation, close the window and reopen it using Run as administrator.

Clear the DNS Cache Using Windows Terminal

Windows Terminal is available on Windows 11 and can also be installed or used on some Windows 10 computers. It can open Command Prompt or PowerShell tabs. To use the familiar ipconfig command, open an elevated Terminal window and enter the same command:

ipconfig /flushdns

You can also clear the DNS client cache from PowerShell with the Clear-DnsClientCache cmdlet. Search for PowerShell or Terminal, select Run as administrator, and run:

Clear-DnsClientCache

Both methods clear the DNS client cache maintained by Windows. If one command is unavailable in your environment, use ipconfig /flushdns, which is the standard option for Windows troubleshooting.

How to Check the DNS Cache Before or After Flushing It

You can use Command Prompt to view entries currently held in the Windows DNS cache. Open Command Prompt or Terminal and run:

ipconfig /displaydns

The output may contain many entries, so it can be lengthy. To clear the cache, run ipconfig /flushdns and then display it again. The command may show a smaller list or no useful cached entries immediately after flushing. Windows and other programs can add new entries as you continue using the internet, so the cache will not necessarily remain empty.

These commands show or clear the Windows DNS client cache. They do not show every DNS record stored elsewhere, such as records held by your browser, router, VPN, or DNS provider.

When Should You Flush the DNS Cache?

Clearing DNS can help when your computer is using old or unusable address information. Consider trying it if:

  • A website has recently changed its server or domain settings, but your computer still appears to connect to its old location.
  • A website works on another device or network but not on your Windows computer.
  • You see a name-resolution error, such as a message that the site cannot be reached or its address could not be found.
  • You have changed DNS settings, switched networks, or disconnected from a VPN and are still seeing unexpected connection behavior.
  • A network administrator or support technician has asked you to refresh DNS information as part of troubleshooting.

Flushing DNS is a useful first step, not a fix for every connection problem. If Windows cannot reach the internet at all, the cause could instead be a weak connection, a disabled network adapter, a firewall, a proxy, a router issue, or a problem with the website itself.

What to Try If Flushing DNS Does Not Fix the Problem

After clearing the cache, close and reopen the browser or application and test the site again. If it still fails, use the checks below to narrow down the cause.

  • Check the web address. A typing error or an outdated bookmark can lead to a failed lookup. Try entering the address again or searching for the site by name.
  • Test another website. If only one site is affected, the issue may be with that site or its DNS records rather than your Windows connection.
  • Try another browser or device. If the site works on a different device using the same network, the issue may be specific to your computer or browser. If it fails on every device, check the router or contact your internet provider.
  • Restart your router. A router can keep its own DNS information. Restarting it may refresh the connection, although you should follow your provider’s instructions if the router is managed by them.
  • Review VPN and proxy settings. A VPN or proxy may use a different DNS server or route traffic differently. Check whether the problem changes when you disconnect, following your organization’s security rules.
  • Restart the computer. A restart can help apply network changes and resolve temporary issues involving an application or network adapter.
  • Check your DNS server settings. If the configured DNS server is unavailable or incorrectly entered, clearing the cache will not solve the underlying problem. Review the network adapter settings or ask your network administrator for the correct values.

You can also use Windows’ network troubleshooting tools and check whether other apps can access the internet. Avoid changing advanced network settings unless you know what they do or have instructions from your administrator. On a work or school computer, network policies may control DNS, VPN, and proxy configuration.

Does Clearing DNS Cache Also Clear Browser DNS?

Not always. Windows and web browsers may maintain separate DNS-related information. The ipconfig /flushdns command clears the Windows DNS client cache, but it does not necessarily clear a browser’s own cache or connection data. Some browsers also use secure DNS or DNS over HTTPS, which can affect how domain lookups are handled.

If a site still behaves incorrectly in one browser but works in another, close and reopen the affected browser first. Then check that browser’s current settings and help information for options to clear DNS, socket, or network data. Browser controls and menu locations can change between versions, so use instructions for your specific browser and release.

Clearing a browser cache is different from clearing Windows DNS. Browser cache usually refers to stored page resources, such as images and scripts. Removing it may make a site download those files again, but it does not replace the Windows DNS flush when the issue is an outdated system-level DNS result.

Does Flushing DNS Delete Browsing History or Improve Privacy?

No. Flushing the Windows DNS cache is not the same as deleting your browser history, cookies, or saved data. It removes cached DNS lookup results from the Windows DNS client. Your browser may still have its own history, and your internet provider, workplace network, or DNS provider may handle or log DNS requests according to its policies.

Flushing DNS can be part of troubleshooting, but it should not be treated as a privacy tool. If your goal is to manage browsing data, use your browser’s privacy and history settings and review the policies for the network and DNS services you use.

Frequently Asked Questions About Clearing DNS in Windows

Do I need administrator access to flush DNS? In typical Windows setups, you should open Command Prompt or Windows Terminal with administrator privileges before running ipconfig /flushdns. This avoids permission-related errors.

How often should I clear the DNS cache? There is usually no need to flush it on a schedule. Windows manages cached entries automatically. Clear it when you are troubleshooting a name-resolution problem or have a specific reason to refresh cached DNS information.

Will flushing DNS disconnect me from the internet? The command does not normally disconnect your computer from the network. It removes cached DNS results; Windows obtains fresh results as needed. If the network itself is unavailable, flushing the cache will not restore it.

What does “Could not flush the DNS Resolver Cache” mean? Check that the command window was opened as an administrator and confirm that you entered the command correctly. If the problem persists, try the PowerShell Clear-DnsClientCache cmdlet in an elevated PowerShell window, or contact your IT administrator if the computer is managed.

Conclusion

To clear the DNS cache in Windows 10 or Windows 11, open Command Prompt or Windows Terminal as an administrator, run ipconfig /flushdns, and confirm that Windows reports a successful flush. You can use ipconfig /displaydns to inspect cached entries and Clear-DnsClientCache as a PowerShell alternative.

Flushing DNS is a quick, safe troubleshooting step when a website will not load or your computer may be using outdated DNS information. If the issue remains, check the browser, network connection, router, VPN, proxy, and DNS server settings to find the underlying cause.


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 →