The WordPress Specialists

How to Refresh DNS Cache: Local DNS Cache vs Router DNS Cache for Troubleshooting Resolution

H

Flush the local DNS cache first, then clear or restart the router DNS cache if several devices still reach the wrong site. That order fixes the most common DNS resolution problems with the least disruption. On Windows, the standard local cache command is ipconfig /flushdns, which Microsoft documents as the command for clearing the DNS resolver cache [source: Microsoft].

TLDR: Local DNS cache lives on one computer, phone, or browser, while router DNS cache affects the whole network. If one laptop opens an old server IP after a website migration, flushing that laptop alone may fix it in under 30 seconds. If 18 out of 20 office devices fail after a DNS change, the router or upstream DNS resolver is the better suspect. A sensible process is: test one device, flush local cache, then restart or clear the router cache only if the issue remains.

What DNS Cache Does

DNS turns a domain name, such as example.com, into an IP address. To avoid asking again and again, devices store answers for a short time. That storage is the DNS cache.

Cache is useful until it is wrong. A site may move to a new server. A domain may get a new record. A VPN may change which DNS server should answer. The device may still cling to the old address. Honestly, it feels like the machine is arguing with reality for no good reason.

Local DNS Cache vs Router DNS Cache

Local DNS cache sits on the endpoint. That means a desktop, laptop, mobile device, browser, or sometimes an app. It affects only that device or program.

Router DNS cache sits at the network edge. Some home and office routers cache DNS replies. Others simply relay requests to an ISP, public DNS service, firewall, or internal DNS server. When the router stores a bad answer, every device using that router can inherit the same bad result.

  • One device has the problem: local cache is the likely cause.
  • All devices on Wi Fi have the problem: router, ISP DNS, or shared resolver is more likely.
  • Only one browser has the problem: browser DNS cache or browser secure DNS settings may be involved.
  • Only while VPN is active: VPN DNS policy or split DNS may be the cause.

When to Refresh Local DNS Cache

Local flushing should come first because it is fast and low risk. It does not disconnect the whole network. It does not interrupt calls, downloads, or smart devices.

Common signs of local DNS trouble include:

  • A website works on a phone but not on a laptop.
  • A site opens from mobile data but fails on office Wi Fi.
  • A browser shows an old staging site after a domain change.
  • ping, nslookup, or dig returns an outdated IP address.

Expected local refresh commands include:

  • Windows: ipconfig /flushdns
  • macOS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  • Linux with systemd: sudo resolvectl flush-caches
  • Older Linux setups: restart the active DNS caching service, such as nscd or dnsmasq

Browser cache can be separate. Chrome-based browsers may keep host entries even after the operating system cache is cleared. Firefox can also use its own DNS behavior, especially when DNS over HTTPS is enabled. The catch is that a system flush may look successful, yet the browser still wastes another 20 seconds loading the wrong endpoint.

When to Refresh Router DNS Cache

Router DNS cache should be checked when several devices fail in the same way. This is common after a domain migration, internal server move, firewall change, or ISP DNS issue.

Many consumer routers do not show a clear “flush DNS” button. Some business routers and firewalls do. If a direct clear option is missing, a restart is usually the practical choice.

  1. Save any router configuration changes first.
  2. Restart the router from its admin panel if possible.
  3. If needed, power it off for 30 seconds, then turn it back on.
  4. After the router returns, renew the client connection or restart the affected device.
  5. Test with nslookup domain.com or dig domain.com.

This may drop the network for a few minutes. In a small office, that can interrupt video calls, payment terminals, shared printers, and cloud apps. For that reason, router refresh should not be the first click unless the whole network is clearly affected.

A Practical Troubleshooting Flow

A good DNS troubleshooting path stays simple:

  1. Confirm the symptom. Check whether the domain fails, loads slowly, or points to the wrong site.
  2. Compare devices. Test one wired device, one Wi Fi device, and one device on mobile data.
  3. Check the returned IP. Use nslookup or dig to see which address is being returned.
  4. Flush local DNS. Start with the affected endpoint.
  5. Clear browser DNS. Restart the browser or clear its host cache if it has one.
  6. Restart the router. Do this if the same issue appears across devices.
  7. Test another resolver. Try a trusted public DNS server or the company’s official DNS service.
  8. Wait for TTL. Some records are designed to remain cached until their time limit expires.

TTL, or time to live, tells resolvers how long to keep a DNS answer. A record with a 300-second TTL should be short lived. A record with a 24-hour TTL can keep old answers around much longer. Some resolvers ignore very tiny TTL values, which can make testing more annoying than it should be.

Common Mistakes That Waste Time

  • Flushing only the operating system cache. The browser may still store the old answer.
  • Restarting the router too early. This disrupts everyone when only one device is affected.
  • Ignoring VPN DNS. A VPN can override local and router DNS settings.
  • Testing only one network. Mobile data can quickly show whether the issue is local.
  • Assuming propagation is instant. DNS changes need time, especially after high TTL records.

Best Practice

The safest rule is to work from smallest scope to largest scope. Clear the app or browser first. Then flush the device cache. Then renew the network connection. Then restart or clear the router. After that, inspect DNS records, authoritative name servers, and external resolvers.

For home users, this process prevents needless router resets. For support teams, it reduces ticket time. For site owners, it helps separate a real DNS record error from a stale cache problem on one machine.

FAQ

Does flushing local DNS delete browsing history?

No. It clears stored DNS lookups, not browser history, cookies, saved passwords, or bookmarks.

Should the router be restarted after every DNS change?

No. The router should be restarted only when several devices show the same stale result or when the router is known to cache DNS.

Why does one browser still show the old site?

The browser may keep its own DNS cache. Closing and reopening it may help. In some cases, its internal host cache or secure DNS setting must be cleared.

Can DNS cache cause a site to load slowly?

Yes, but it is not the only cause. Bad DNS answers, failing resolvers, VPN DNS, browser cache, and slow hosting can all create delays.

How long should a user wait after flushing DNS?

Local flushing is usually immediate. Router restarts may take a few minutes. Public DNS changes can still depend on TTL and resolver behavior.

What is the best first command for Windows DNS troubleshooting?

The common first command is ipconfig /flushdns. After that, nslookup can check which IP address the domain returns.

About the author

Ethan Martinez

I'm Ethan Martinez, a tech writer focused on cloud computing and SaaS solutions. I provide insights into the latest cloud technologies and services to keep readers informed.

By Ethan Martinez
The WordPress Specialists