How to Clear the DNS Cache in Chrome, Firefox, Edge, and Safari

DNS is what turns a website name into the server address your browser connects to. Browsers and operating systems remember recent lookups so repeat visits are faster, but stale DNS cache can keep a site broken after it moves servers or changes records. Clearing DNS cache forces a fresh lookup.

Does this affect you?

Use this for Chrome, Firefox, Edge, and Safari on Windows or Mac when a website will not load, shows an old server, or reports a cannot-find-server style error. Safari does not keep a separate browser DNS cache, so flushing the operating system cache covers it.

Clear Chrome or Edge internal DNS cache

Chrome and Edge use nearly the same internal diagnostics page.

  1. Open a new tab.
  2. In Chrome, enter chrome://net-internals/#dns. In Edge, enter edge://net-internals/#dns.
  3. Press Enter.
  4. Click Clear host cache.
  5. Close the tab and reload the problem site.

There may be no dramatic confirmation message. The cache is cleared when you click the button.

Clear Firefox internal DNS cache

Firefox has its own networking page for DNS cache.

  1. Open a new Firefox tab.
  2. Type about:networking#dns in the address bar.
  3. Press Enter.
  4. Click Clear DNS Cache.
  5. Reload the website.

Flush DNS at the operating system level

This covers every browser, including Safari.

  1. On Windows, open Command Prompt as administrator.
  2. Run ipconfig /flushdns and wait for the success message.
  3. On Mac, open Terminal.
  4. Run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
  5. Enter your Mac password if prompted, then reload the site.

More control

Try another DNS provider

If browser and operating system cache clearing do not help, your router or internet provider may be holding old DNS data. Temporarily switch the device DNS server to 1.1.1.1 or 8.8.8.8 and test again.

Windows requires administrator access

If ipconfig /flushdns returns an error, reopen Command Prompt as administrator. Without admin rights, the command may not complete properly.

DNS cache is not browser data

Flushing DNS does not delete passwords, cookies, history, saved files, or cached images. It only clears remembered address lookups.

Sources

  • Google Chrome Help – Network diagnostics and DNS troubleshooting (2025)
  • Mozilla Support – Websites do not load: troubleshoot and fix error messages (2025)
  • Microsoft Support – Flush and reset the DNS client resolver cache (2025)
Disclosure: This post may contain affiliate links which means I may receive a commission for purchases made through links. I will only recommend products that I have personally used! Learn more on my Private Policy page.
A thoughtful woman reads a newspaper while enjoying coffee at an indoor workspace.

DEALWEEK

SUBSCRIBE AND GET 20% OFF YOUR NEXT ORDER! OFFER ENDS SOON - DON’T MISS OUT!

We don’t spam! Read our privacy policy for more info.

Shopping Cart