How to Flush DNS
Flushing DNS clears saved domain-name lookups so your device or browser can ask for a fresh address. It is useful when one or a few websites fail after a domain change, show a DNS error, or open on one device but not another.
Quick answer for Windows
- Open Command Prompt.
- Run
ipconfig /flushdns. - Close and reopen the browser.
- Try the site again.
Microsoft describes /flushdns as clearing and resetting the DNS client resolver cache.
What a DNS flush does—and does not do
DNS translates a name such as networkcheck.net into an IP address. To speed up repeat visits, the answer can be cached by your operating system, browser, router, or DNS provider. A stale or incorrect cached answer can send you to an old address or return an error even after the authoritative DNS record has changed.
A DNS flush can help when
- One domain shows a DNS or “server IP address could not be found” error.
- A website recently moved to a new server.
- The site works on cellular data but not on home Wi-Fi.
- Other people can open the site but one device cannot.
A DNS flush usually will not fix
- A total internet outage.
- Weak Wi-Fi or slow download speed.
- A website server that is offline.
- A 403, 404, 429, or 500-series web error.
- An account, password, or regional-access problem.
Flush DNS on Windows 10 or Windows 11
Command Prompt method
- Open the Start menu and type Command Prompt.
- Open Command Prompt. If Windows denies the command, right-click it and choose Run as administrator.
- Enter:
ipconfig /flushdns
A successful result normally says that the DNS Resolver Cache was flushed. Close and reopen the browser before retesting.
PowerShell method
Clear-DnsClientCache
Microsoft documents this PowerShell command as equivalent to ipconfig /flushdns.
Inspect the Windows cache
ipconfig /displaydns
This displays current resolver-cache entries. The list can be long, and some applications may repopulate entries immediately after a flush.
Refresh DNS on macOS
Apple does not provide one universal consumer-facing flush command for every macOS release. The safest version-independent sequence is:
- Quit the browser completely.
- Turn Wi-Fi off, wait 10 seconds, and turn it back on.
- Reopen the browser and test.
- If the problem remains, restart the Mac.
On many current macOS releases, administrators also use the following Terminal command:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Enter the Mac administrator password when prompted. Terminal may show no success message. Because Apple can change internal services between releases, restarting remains the most reliable non-version-specific fallback.
Clear Chrome or Edge host cache
Chromium-based browsers can maintain their own host information in addition to the operating-system cache.
- Open a new browser tab.
- Enter
chrome://net-internals/#dnsin Chrome oredge://net-internals/#dnsin Edge. - Select Clear host cache.
- Then open
chrome://net-internals/#socketsoredge://net-internals/#socketsand choose Flush socket pools. - Close every browser window and reopen the browser.
These internal pages can change between browser versions. If the options are unavailable, fully quit and reopen the browser or restart the device.
Refresh DNS on iPhone, iPad, and Android
iPhone or iPad
- Turn Airplane Mode on for about 10 seconds, then turn it off.
- If that fails, disconnect and reconnect Wi-Fi.
- Restart the device.
- As a last resort, use Reset Network Settings—but understand that this removes saved Wi-Fi networks and related network settings.
Android
- Turn Airplane Mode on briefly, then off.
- Forget and reconnect to the Wi-Fi network if only that network is affected.
- Restart the phone.
- If Chrome alone is affected, clear the browser host cache if the internal page is available, or clear Chrome’s cached data carefully.
What about the router?
Some routers cache DNS or forward all home-device queries. If several devices on one Wi-Fi network have the same DNS problem but cellular data works, restart the router. Turn it off, wait about 30 seconds, then power it back on and allow several minutes for a full reconnection.
How to verify whether the flush worked
- Open the problem site in a private/incognito window.
- Try another browser on the same device.
- Try the site on another device connected to the same network.
- Try cellular data or another Wi-Fi network.
- Use the NetworkCheck site checker to see whether the domain resolves.
If the site works on cellular data but not home Wi-Fi after device-level flushing, the remaining cache or problem may be in the router, provider DNS, secure-DNS setting, or local filtering service.
When flushing DNS does not solve it
| Symptom | More likely next step |
|---|---|
| Every site fails | Check Wi-Fi connection, router, modem, and provider outage status. |
| Only one browser fails | Disable extensions temporarily, clear that browser’s site data, or test a new browser profile. |
| Domain resolves but page times out | The web server, firewall, route, or CDN may be the issue. |
| 403 or 401 error | Check permissions, login, VPN, region, or security filtering. |
| 404 error | The server is reachable, but that page path may not exist. |
| Certificate warning | Check device date/time, certificate validity, interception software, or site configuration. |
Frequently asked questions
Is it safe to flush DNS?
Yes. It removes temporary lookup records. The next visit may take slightly longer while fresh records are retrieved.
Will flushing DNS change my IP address?
No. It does not change your public IP, private IP, router address, or provider assignment.
How often should I flush DNS?
Only when troubleshooting a lookup problem. Routine daily flushing is unnecessary.
Why did entries return immediately?
Browsers and background applications make new DNS requests as soon as they reconnect, so the cache can repopulate quickly.