Last updated: November 28, 2026 · By Visal Vadayar
Quick answer: On Windows, open Command Prompt and run ipconfig /flushdns. On Mac, run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in Terminal. In Chrome, go to chrome://net-internals/#dns and click Clear host cache. On phones, toggle Airplane mode on and off.
Clear DNS cache by device
| Device | How |
|---|---|
| Windows 11/10 | Command Prompt (admin): ipconfig /flushdns |
| macOS | Terminal: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder |
| Linux (systemd) | resolvectl flush-caches |
| Chrome | chrome://net-internals/#dns > Clear host cache |
| Edge | edge://net-internals/#dns > Clear host cache |
| iPhone/iPad | Airplane mode on for 10 s, then off (or restart) |
| Android | Airplane mode on/off, or restart; clear Chrome’s host cache |
| Router | Restart it; see how to reset a router |
Windows step-by-step
- Press Windows, type cmd, right-click Command Prompt > Run as administrator.
- Type ipconfig /flushdns and press Enter.
- You’ll see “Successfully flushed the DNS Resolver Cache.”
- Optional: ipconfig /release then ipconfig /renew to get a new IP address.
When to flush DNS
- A website shows “server not found” but works on other devices.
- A site you manage moved hosting and still shows the old version.
- Errors like DNS_PROBE_FINISHED_NXDOMAIN or ERR_NAME_NOT_RESOLVED.
- After changing DNS servers or removing malware.
Change to a faster DNS server
| Provider | Primary | Secondary |
|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 |
| 8.8.8.8 | 8.8.4.4 | |
| Quad9 (blocks malware) | 9.9.9.9 | 149.112.112.112 |
Still having problems? Read why is my Wi-Fi so slow or look up a domain’s records with Domain Dossier. Networking students: try our subnet calculator.
FAQ
What does clearing DNS cache do?
It deletes the saved list of website addresses on your device, forcing it to look them up again. This fixes errors when a site moved servers, shows an old version, or won’t load.
Is it safe to flush DNS?
Yes. It doesn’t delete files, passwords or browsing history. Websites may load a fraction of a second slower the first time while addresses are looked up again.
How do I clear DNS cache in Chrome?
Go to chrome://net-internals/#dns and click Clear host cache. Then go to chrome://net-internals/#sockets and click Flush socket pools.
Why do I get DNS_PROBE_FINISHED_NXDOMAIN?
Chrome couldn’t find the site’s address. Flush DNS, check the spelling, restart your router, or switch to a public DNS server such as 1.1.1.1 or 8.8.8.8.




