How to Flush DNS on Windows 11

Windows 11 keeps a local DNS cache so it does not have to look up the same website addresses over and over. When a site moves to a new server or a cached entry goes bad, that cache can send you to the wrong place or cause page-not-found errors. Flushing it forces Windows to fetch fresh records, and it takes one command.

Quick Answer

Open Terminal or Command Prompt, type ipconfig /flushdns, and press Enter. Windows should reply that it successfully flushed the DNS Resolver Cache.

How to Flush DNS on Windows 11

  1. Right-click the Start button and choose Terminal. Choosing Terminal (Admin) also works and avoids permission issues on some managed PCs.
  2. Type ipconfig /flushdns and press Enter.
  3. Look for the confirmation message that the DNS Resolver Cache was flushed.
  4. Optional: type ipconfig /displaydns to confirm the cache is now nearly empty.
  5. Close and reopen your browser, then try the website again.
Terminal window showing the ipconfig flushdns command and its success message
Run ipconfig /flushdns in Terminal to clear the Windows DNS cache.

Useful DNS Commands

Command What it does
ipconfig /flushdns Clears the Windows DNS cache
ipconfig /displaydns Lists cached DNS entries
ipconfig /release then /renew Requests a new IP address from the router
ipconfig /registerdns Refreshes DHCP leases and re-registers DNS names

Troubleshooting

  • The command is not recognized: make sure there is a space before the slash and that you are in Command Prompt or PowerShell, not the Run box.
  • The site still fails: browsers can keep their own DNS cache, so fully close the browser or clear its cache too.
  • If the whole connection is flaky, try resetting the network adapter.
  • On an older PC, see how to clear the DNS cache on Windows 10.

Frequently Asked Questions

Is it safe to flush the DNS cache?

Yes. Windows simply rebuilds the cache as you browse. The only effect is that the first visit to each site may take a fraction of a second longer.

Do I need to restart after flushing DNS?

No. The change takes effect immediately.

How often should I flush DNS?

Only when you have a problem, such as a site not loading after a change. There is no need to do it routinely.

Summary

  1. Open Terminal or Command Prompt.
  2. Run ipconfig /flushdns.
  3. Confirm the success message.
  4. Restart your browser and test the site.