Your Search Bar For Shrewd Tips

How Do I Clear Dns Cache Windows 10?


If a website will not load, sends you to an old address, or works on another device but not your Windows 10 PC, a stale DNS entry may be the cause. Clearing the DNS cache is a quick troubleshooting step that asks Windows to look up website addresses again instead of relying on saved information. In most cases, you can do it in under a minute with one command.

This guide explains how to clear the DNS cache in Windows 10 using Command Prompt or PowerShell, how to check whether it worked, and what to try if the problem continues. It also clarifies what flushing DNS does—and what it does not do.

What Is the DNS Cache in Windows 10?

The Domain Name System, or DNS, translates website names such as example.com into IP addresses that computers use to connect to websites and other online services. Windows keeps a temporary record of some of these lookups in a local DNS resolver cache. Saving results can make repeat connections faster and reduce unnecessary DNS requests.

Occasionally, a saved record becomes outdated or incorrect. For example, a website may have moved to a new server, but your computer may still have an older address cached. In that situation, Windows could have trouble reaching the site or might direct the request to the wrong location. Flushing the DNS cache removes these locally stored records so Windows can request fresh information.

Clearing the cache does not delete personal files, browser history, saved passwords, or network settings. It is a routine troubleshooting step. The next time an app or website needs an address, Windows can look it up again.

How to Clear the DNS Cache with Command Prompt

The simplest way to clear the DNS cache in Windows 10 is to run the ipconfig /flushdns command from an elevated Command Prompt. “Elevated” means Command Prompt is running with administrator privileges. Follow these steps:

  • Save any work you have open, then select the Start button.
  • Type Command Prompt or cmd into the search box.
  • In the search results, right-click Command Prompt and choose Run as administrator.
  • If Windows asks whether you want to allow the app to make changes, select Yes.
  • In the Command Prompt window, type ipconfig /flushdns and press Enter.

When the command succeeds, Windows displays a message similar to: “Successfully flushed the DNS Resolver Cache.” You can then close Command Prompt and try opening the website or app that was having trouble.

Make sure there is a space between ipconfig and /flushdns. The command is not case-sensitive, so IPCONFIG /FLUSHDNS works too, but typing it in lowercase is easiest.

Clear the DNS Cache in PowerShell

You can also flush the Windows 10 DNS cache with PowerShell. This option is useful if you already use PowerShell or prefer its DNS-specific command. Run it with administrator privileges:

  • Open Start and search for PowerShell.
  • Right-click Windows PowerShell and select Run as administrator.
  • Approve the User Account Control prompt if it appears.
  • Enter Clear-DnsClientCache and press Enter.

PowerShell may return to the prompt without displaying a success message. That is normal. The command clears the local DNS client cache, just as ipconfig /flushdns does. You only need to use one method; running both is not necessary.

How to Confirm the DNS Cache Was Cleared

After flushing the cache, you can check the DNS entries Windows currently has stored. Open Command Prompt and enter ipconfig /displaydns. The output lists cached records, if any are present. It may show only a small number of entries—or none—immediately after a flush. As you visit websites and apps perform lookups, new records can appear.

Seeing entries after you have browsed the web does not mean the flush failed. Windows creates fresh cache entries as needed. The success message from ipconfig /flushdns is usually enough to confirm that the command ran.

What If Command Prompt Says “Could Not Flush the DNS Resolver Cache”?

If Windows reports that it could not clear the cache, first check that you opened Command Prompt as an administrator. Close the window, search for Command Prompt again, and choose Run as administrator before repeating the command.

If the issue remains, restart the computer and try once more. A restart can resolve a temporary problem with the DNS Client service or another Windows component. You can also try the PowerShell command Clear-DnsClientCache in an elevated PowerShell window.

For a spelling or syntax error, re-enter the command exactly as ipconfig /flushdns, including the space. If you receive a different error, note the full message; it can help identify whether the issue is with permissions, the service, or a broader Windows problem.

When Should You Flush the DNS Cache?

Flushing DNS can help when a saved address is interfering with a new lookup. Consider trying it if:

  • A particular website fails to load on your PC but works on another device or network.
  • You see an error suggesting the server’s IP address could not be found.
  • A website has recently changed hosting or moved to a new server, and your computer still seems to reach its old location.
  • You are troubleshooting certain connection problems after changing DNS settings.
  • A network administrator or support professional has asked you to clear the local DNS cache.

Flushing DNS is not a fix for every internet problem. It is unlikely to help if your internet connection is down, your Wi-Fi signal is weak, or the website’s server is unavailable. If many sites fail to load, check your connection and router as well.

What Flushing DNS Does Not Clear

The ipconfig /flushdns command clears the DNS resolver cache maintained by Windows. It does not necessarily clear separate caches held by web browsers, routers, internet service providers, or other devices on your network. Those systems may store DNS information independently.

If one browser still behaves differently after you flush the Windows cache, close and reopen the browser. Some browsers maintain their own DNS or connection data. You may need to use the browser’s own troubleshooting or cache-clearing options if the issue appears only there. Clearing a browser’s general history or cookies is a separate action and may sign you out of websites, so it is not usually the first step for a DNS problem.

Likewise, clearing DNS on your PC does not erase the router’s DNS cache or force an internet service provider to refresh its records. If the same problem affects every device on your network, restarting your router may be worth trying. If it continues, contact your network administrator or internet provider.

Should You Release and Renew Your IP Address?

Some troubleshooting guides pair a DNS flush with ipconfig /release and ipconfig /renew. These commands do something different: they release and request a new local IP address from the network’s DHCP service. They are not required to clear the DNS cache.

Use release and renew only when you are troubleshooting an IP-address or network-configuration problem and understand that your connection may briefly disconnect. For a stale DNS entry, begin with ipconfig /flushdns alone.

Frequently Asked Questions

Do I need to restart Windows 10 after flushing DNS?
Usually not. The cache is cleared as soon as the command succeeds, and you can retry the website right away. Restarting is an option if you are troubleshooting other system or connection issues.

Is it safe to flush DNS?
Yes. It removes temporary DNS lookup records from your Windows computer. It does not remove your files or change your saved network configuration. Windows will create new cache entries as you use the internet.

How often should I clear the DNS cache?
There is no need to flush it on a regular schedule. Clear it when you are troubleshooting a suspected stale DNS record or when a trusted support professional recommends it.

Will flushing DNS make my internet faster?
Not usually. The cache is designed to make repeat lookups efficient. Clearing it can help resolve certain address-related problems, but it is not a general internet speed optimization.

Conclusion

To clear the DNS cache in Windows 10, open Command Prompt as an administrator, run ipconfig /flushdns, and look for the success message. You can use the PowerShell command Clear-DnsClientCache as an alternative. Then try the affected website again. If the problem persists, check your connection, browser, router, or DNS settings—the issue may be outside Windows’ local cache.


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 →