DNS flushing is usually the faster first fix when a website will not load, points to the wrong server, or keeps showing an old version after a DNS change. It clears saved domain lookup records from a device, forcing that device to ask for fresh DNS information. On Windows, the ipconfig /flushdns command purges the DNS resolver cache [source: Microsoft]. A router restart is broader, slower, and better suited for network-wide glitches, stale router DNS entries, or ISP connection problems.
TLDR: A DNS cache flush clears old website address records from one device, while a router restart resets the local network equipment and may refresh DNS behavior for every connected device. If one laptop cannot reach example.com after a site migration, flushing DNS may fix it in under 30 seconds. If 18 out of 20 office devices fail to resolve the same domain, the router or upstream DNS service is more likely involved. The best troubleshooting order is simple: flush the device DNS cache first, then restart the browser, then restart the router if the issue affects more than one device.
Table of Contents
What DNS Flushing Means
DNS flushing means clearing stored DNS records from a computer, phone, or browser. DNS records translate domain names into IP addresses. Without DNS, users would need to remember strings of numbers instead of names like company.com.
Devices save DNS answers to speed things up. That saved data is called a DNS cache. It helps pages load faster because the system does not need to ask a DNS resolver the same question again and again.
The annoying part is that cached DNS records can become wrong. A website may move to a new server. A domain may change hosting provider. A company may update email records. Yet the user’s device may still cling to the old answer. It drives teams mad when a fix is live for everyone else, but one machine keeps loading the broken version for another 20 minutes.
DNS Cache Flush vs Router Restart
A DNS cache flush works at the device level. It clears records stored by the operating system. In many cases, it also helps when a browser, VPN, or local resolver has been holding onto stale data.
A router restart works at the network level. It powers the router off and on again, or reboots it through its admin panel. This can clear temporary router memory, renew ISP communication, refresh local network sessions, and sometimes clear router-level DNS cache.
The difference matters because the wrong choice wastes time. A DNS flush might take 10 seconds. A router restart may take 2 to 5 minutes, plus extra time for Wi Fi devices to reconnect. That feels small until a support technician repeats it across a full office.
| Fix | Best For | Scope | Typical Time |
|---|---|---|---|
| DNS cache flush | One device showing stale domain results | Single device | 10 to 30 seconds |
| Router restart | Many devices affected or router behaving badly | Whole local network | 2 to 5 minutes |
When DNS Flushing Is the Right Move
DNS flushing should come first when the issue appears limited to one device. For example, one employee may be unable to open a new client portal, while other employees reach it without trouble. That points to local cached DNS more than a router fault.
It is also useful after DNS record changes. Common examples include:
- A website migration to a new host or server.
- Email record updates, such as MX, SPF, DKIM, or DMARC changes.
- CDN changes, where traffic should move to a new edge network.
- Security cleanup after a bad redirect or malicious DNS entry was corrected.
- Local testing after editing hosts files or switching DNS resolvers.
DNS records also use a value called TTL, or time to live. TTL tells resolvers how long a DNS answer can be cached before it should be checked again [source: Cloudflare]. If a record has a TTL of 3,600 seconds, cached data may sit around for up to one hour unless cleared earlier.
When a Router Restart Makes More Sense
A router restart is the better move when the problem affects several devices on the same network. If phones, laptops, tablets, and desktops all fail to reach the same domains, one local DNS cache is probably not the cause.
A restart may help when the router has frozen, lost proper ISP contact, or started handing out bad network settings. Some home and small office routers also act as DNS forwarders. If that forwarding layer gets stuck, one device flush will not fix the shared problem.
Signs that point toward a router restart include:
- Several devices cannot resolve domains.
- Websites fail, but direct IP tests still work.
- Wi Fi is connected, yet pages stall for longer than usual.
- The router admin page loads slowly or not at all.
- Changing DNS on one device works, but the rest of the network stays broken.
How DNS Flushing Is Usually Done
The exact command depends on the operating system. The user should run the command with proper permissions, then close and reopen the browser. Browser DNS caches can linger, which is a small but irritating detail.
- Windows: Open Command Prompt as administrator and run ipconfig /flushdns.
- macOS: Use Terminal. The command varies by macOS version, but often includes sudo dscacheutil -flushcache and sudo killall -HUP mDNSResponder.
- Linux: The command depends on the resolver service, such as systemd-resolved, dnsmasq, or nscd.
- Browsers: Some browsers keep their own DNS cache. Restarting the browser is often enough.
After flushing, the user should test the domain again. If the same device still fails, switching DNS resolvers can help isolate the issue. Public resolvers such as Google DNS, Cloudflare DNS, or Quad9 can show whether the current resolver has stale or broken records.
A Practical Troubleshooting Order
The smartest order is simple and fast. It avoids pulling the plug on the whole network too early.
- Test another site. This checks whether the issue is one domain or the whole connection.
- Test another device. If only one device fails, local cache is suspect.
- Flush DNS on the affected device. This is quick and low risk.
- Restart the browser or app. Some apps hold their own network state.
- Try another DNS resolver. This separates local trouble from resolver trouble.
- Restart the router. Use this when multiple devices are affected.
- Check authoritative DNS records. The domain itself may be misconfigured.
Honestly, it feels like DNS should be cleaner than this. A domain can look fixed on one network and broken on another. That does not always mean someone made a mistake. It often means cached answers are expiring at different times.
Common Mistakes
One common mistake is restarting the router for every domain issue. That may work sometimes, but it hides the real cause. Another mistake is flushing DNS only once while the browser stays open with old connection data.
Another trap is ignoring VPNs. A VPN may use its own DNS servers. In that case, flushing the local cache may not be enough. The user may need to disconnect the VPN, reconnect it, or check split tunneling rules.
FAQ
What is DNS flushing?
DNS flushing clears saved domain lookup records from a device. It forces the device to request fresh DNS information the next time it visits a domain.
Does flushing DNS delete personal data?
No. It does not delete files, passwords, bookmarks, or browsing history. It only clears cached DNS lookup entries.
Is DNS flushing better than restarting the router?
It depends on the scope. If one device has the issue, DNS flushing is usually better. If many devices fail, a router restart may be the better fix.
How often should DNS be flushed?
There is no need to do it daily. It is useful after DNS changes, website migrations, resolver problems, or strange domain errors.
Can a router have a DNS cache?
Yes, some routers cache or forward DNS queries. If that cache gets stuck, restarting the router may clear it.
Why does a website work on mobile data but not Wi Fi?
The Wi Fi network may be using a stale DNS resolver or a router with bad cached data. Mobile data uses a different network path and different DNS servers.
What should be tried first?
The safest first step is to test another device, then flush DNS on the affected device. If several devices fail, the router and DNS resolver should be checked next.


