IsSiteUpOrDown

How to flush DNS on Windows, Mac, Linux, iPhone and Android

When a website loads for everyone except you, a stale DNS cache is one of the most common culprits, and one of the easiest to fix. This guide explains what the cache is, then gives the exact steps for every major device.

What DNS does, in one paragraph

Computers connect to numeric addresses like 142.250.72.14, not names like google.com. DNS (the Domain Name System) is the lookup service that translates one into the other. To save time, your device and browser remember recent answers for a while. If a website moves to a new server, or a lookup fails once and the failure gets remembered, your device keeps using the bad answer. Flushing throws those saved answers away so the next lookup is fresh.

When flushing DNS helps

It won't help if the site is actually down for everyone. Check that first.

Windows 10 and 11

  1. Press Win, type cmd, and open Command Prompt.
  2. Run ipconfig /flushdns
  3. You should see "Successfully flushed the DNS Resolver Cache."

If that doesn't fix it, also run ipconfig /release then ipconfig /renew to get a fresh network address.

macOS

  1. Open Terminal (Applications → Utilities).
  2. Run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Enter your Mac password. Nothing is printed when it works.

Linux

Most modern distributions use systemd-resolved:

Your browser's own cache

Chrome and Edge keep a separate DNS cache. Visit chrome://net-internals/#dns (or edge://net-internals/#dns) and click Clear host cache. Then visit chrome://net-internals/#sockets and click Flush socket pools. Firefox clears its cache when you restart it.

iPhone and iPad

iOS has no flush button, but either of these clears the cache:

Android

Your router

Routers cache DNS too. Unplug it for 30 seconds and plug it back in. That clears its cache for every device at home.

Still broken? Switch resolvers

If the problem comes back, your internet provider's DNS servers may be the issue. Switching to a public resolver such as Cloudflare (1.1.1.1), Google (8.8.8.8) or Quad9 (9.9.9.9) takes two minutes. Our troubleshooting guide has the steps for each system.

Is a site not loading right now?

More guides

TroubleshootingBasics Is it down for everyone or just me? How to tell in 60 seconds A quick, reliable routine to work out whether a website is really down or the problem is your browser, device, network or internet provider. 5 min read Status codesExplainer HTTP status codes explained: what 403, 404, 429, 500, 502, 503 and 504 mean A plain-English guide to the error codes websites return, what each one tells you about whether a site is down, and what you can do about it. 7 min read OutagesExplainer Why websites go down: the 7 most common causes of outages From traffic spikes to expired domains and cloud provider failures, here is what actually takes websites offline and how long each kind of outage usually lasts. 6 min read

How useful is IsSiteUpOrDown?

No ratings yet. Be the first!
Your rating
What should we improve? (pick any)