Flushing DNS means clearing the DNS cache stored on your computer, operating system, or browser. When you flush DNS, all previously saved domain-to-IP mappings are deleted, forcing your device to request fresh DNS information from authoritative servers.
This simple command often solves issues like:
DNS_PROBE_FINISHED_BAD_CONFIG, NXDOMAIN)Test after flushing: use our DNS Lookup Tool to verify live DNS records.
A DNS cache is a temporary database your computer or router keeps to quickly resolve domain names. Instead of looking up DNS records every time, it stores recent responses for faster access.
Example:
When you visit example.com, your system remembers:
example.com β 93.184.216.34
TTL: 3600 seconds
If the website's IP changes before the TTL expires, you may still be directed to the old server until the cache expires β unless you flush DNS manually.
Flushing DNS can fix a variety of network and browsing problems:
| Problem | Cause | Solution |
|---|---|---|
| Website not loading or showing old content | Cached IP address | Flush DNS to fetch the updated record |
| DNS_PROBE_FINISHED_NXDOMAIN or BAD_CONFIG | Corrupt or outdated cache | Clear DNS to rebuild entries |
| Changed hosting or DNS records | Old DNS still cached | Flush DNS to see changes instantly |
| Privacy concerns | Cached domain history | Remove local DNS logs |
| SSL / HTTPS mismatch | Old IP using invalid certificate | Clear cache to get the correct host |
If you've recently changed records, check DNS Propagation Status afterward.
You should see:
Successfully flushed the DNS Resolver Cache.
Optional:
View cache entries before clearing:
Then press Enter. No confirmation appears, but DNS cache is cleared.
For systems using systemd-resolved:
For older versions:
or
Check cache statistics:
Option 1:
Toggle Airplane Mode on and off (resets DNS cache).
Option 2:
Clear network settings:
Settings β Apps β Chrome (or Browser) β Storage β Clear Cache
Option 3 (advanced):
Use a DNS changer app to switch DNS (automatically clears cache).
| Browser | Method |
|---|---|
| Google Chrome | Visit chrome://net-internals/#dns β Click "Clear host cache" |
| Microsoft Edge | Visit edge://net-internals/#dns β Clear host cache |
| Mozilla Firefox | Type about:networking#dns β Click "Clear DNS Cache" |
| Safari | Close all windows β Clear history & caches (CMD + ALT + E) |
Some routers also store DNS entries. To clear router DNS cache:
192.168.1.1)Alternatively, simply restart your router to refresh its internal cache.
After a flush:
Example:
If your local cache had an old IP from before DNS propagation completed, flushing ensures you're now resolving to the current, correct server.
| Concept | Description | Scope |
|---|---|---|
| Flush DNS | Clears DNS cache on a single device | Local |
| DNS Propagation | Global update of DNS changes across servers | Global |
| Result | Forces fresh DNS queries | Makes DNS changes visible globally |
Learn more in What Is DNS Propagation?
β After:
π‘ Pro tip:
If you use a VPN or proxy, flush DNS after connecting or disconnecting to avoid leaks.
| Tool | Platform | Features |
|---|---|---|
| FlushDNS.cmd | Windows | Simple one-click batch script to clear DNS |
| CleanMyMac X | macOS | GUI-based DNS cache clearing under Maintenance |
| DNS Jumper | Windows | Switch DNS + flush with one click |
You can also create your own script:
@echo off
ipconfig /flushdns
pause
Yes. It only clears cached data; no network settings or passwords are affected.
Temporarily yes, if old or corrupt entries were slowing lookups.
Only when troubleshooting or after DNS changesβno need daily.
Yes, often it resolves outdated or incorrect IP cache issues.
No, browser cache clears files; DNS flush specifically clears domain lookups.
After flushing your DNS cache, verify your domain's DNS records are resolving correctly with our free DNS Lookup Tool.
We may log anonymized request data for diagnostics. Read our Privacy Policy.
© 2025 DNS Lookup. All rights reserved. Proudly Hosted on MonoVM VPS Hosting
We use HTTPS, HSTS, and regular security reviews. Report issues at [email protected]
If you believe a tool is being misused, report it at [email protected]