Clear the Windows DNS cache first if only one computer is misbehaving; restart the router if several devices are slow, stuck, or reaching the wrong sites. Windows keeps a local DNS resolver cache that can be cleared with ipconfig /flushdns, a command documented by Microsoft [source: Microsoft]. Router cache is broader. It may include DNS forwarding data, DHCP leases, ARP entries, and stale connection states.
TLDR: If your laptop says “site can’t be reached” but your phone works on the same Wi-Fi, flush the Windows DNS cache first. If three devices in the house all load pages 5 to 10 seconds slower than usual, restart the router and let it rebuild its tables. For example, a home user with 12 connected devices may fix one bad laptop in under 30 seconds with ipconfig /flushdns, while a router restart may take 2 to 5 minutes but helps the whole network. Do not factory reset the router unless you have backed up your settings.
What people mean by “Wi-Fi cache”
There is no single button called clear Wi-Fi cache in Windows or most routers. The phrase usually points to several small records that help your device connect faster. When those records turn stale, you get strange errors.
- DNS cache: Matches website names, such as
example.com, to IP addresses. - DHCP lease: Stores the local IP address assigned to your device.
- ARP cache: Matches local IP addresses to device hardware addresses.
- Router session tables: Track active connections passing through the router.
- Wi-Fi profile data: Stores saved networks, passwords, and security settings.
Honestly, it feels like one error message gets blamed for everything. “No internet” might mean DNS failed, the router froze, the modem dropped, or your saved Wi-Fi profile is corrupted. The fix depends on where the bad record lives.
Windows DNS cache: when to clear it
Start with the Windows DNS cache when the problem is limited to one Windows PC. This is common after a website changes servers, a VPN disconnects badly, or malware cleanup removes a bad DNS setting but Windows still remembers old answers.
Typical signs include:
- One website fails on your PC but works on your phone.
- A site loads the wrong page after a recent server move.
- Browsers show DNS errors such as DNS_PROBE_FINISHED_NXDOMAIN.
- VPN or work network access changed and names no longer resolve.
- You changed DNS servers, but Windows still acts as if nothing changed.
How to clear the Windows DNS cache
Use this method first. It is safe, fast, and does not erase Wi-Fi passwords.
- Click Start.
- Type cmd.
- Right-click Command Prompt.
- Select Run as administrator.
- Type
ipconfig /flushdnsand press Enter.
You should see a message similar to: Successfully flushed the DNS Resolver Cache. If websites still fail, restart the browser. Some browsers keep their own DNS or socket pools, and it drives me crazy that they may ignore the clean system cache for a short time.
For a slightly deeper reset, run these commands in order:
ipconfig /flushdns
ipconfig /release
ipconfig /renew
netsh winsock reset
Then restart Windows. The release and renew commands request a fresh local IP address from the router. netsh winsock reset resets the Windows network socket catalog. Use it when browsers, VPN clients, or security tools have left networking in a bad state.
Router cache: when it matters more
Clear or restart the router when the problem affects more than one device. Routers hold temporary data for the whole network. If that data gets stale, every phone, laptop, console, and smart TV may suffer.
Router-side issues often show up like this:
- Several devices lose internet at the same time.
- Streaming works, then stops, then works again.
- New devices connect to Wi-Fi but get no internet.
- Websites load slowly on all devices.
- The router admin page feels sluggish or fails to open.
- Devices keep getting the same bad local IP address.
A router restart clears many temporary tables. That includes DNS forwarder cache on many models, NAT sessions, and stuck device states. It does not usually delete your Wi-Fi name or password.
How to clear router cache safely
The simplest safe method is a controlled power cycle.
- Turn off the router using its power button, if it has one.
- Unplug the power cable.
- Wait 60 seconds.
- Plug it back in.
- Wait until the internet and Wi-Fi lights stabilize.
If you have a separate modem and router, restart them in the right order:
- Unplug both modem and router.
- Wait 60 seconds.
- Plug in the modem first.
- Wait until the modem is fully online.
- Plug in the router.
Expect to waste time on this if your router takes ages to boot. Some ISP gateways need 3 to 5 minutes before they stop blinking and actually pass traffic. Do not keep unplugging it every 20 seconds. That only stretches the outage.
Do not confuse restart with factory reset
Restart means power off and power on. It clears temporary memory. Factory reset wipes custom settings and returns the router to default values. That can remove your Wi-Fi name, password, port forwarding rules, parental controls, and ISP login details.
Use factory reset only when:
- You cannot log in to the router.
- The router is badly misconfigured.
- Your ISP or manufacturer tells you to do it.
- You have saved your settings or know how to rebuild them.
Windows DNS cache vs router cache
| Area | Windows DNS Cache | Router Cache |
|---|---|---|
| Scope | One Windows device | Whole local network |
| Best for | Wrong site, DNS errors, VPN name issues | Multiple devices failing or slow |
| Risk | Very low | Low if restarting, higher if resetting |
| Time needed | Under 1 minute | 2 to 5 minutes on many home routers |
A practical repair order
Use this order to avoid needless work:
- Test another device. If only one PC fails, stay on that PC.
- Flush Windows DNS. Run
ipconfig /flushdns. - Restart the browser. Try a private window too.
- Renew the IP lease. Run
ipconfig /releaseandipconfig /renew. - Restart the router. Do this if several devices are affected.
- Check DNS settings. Look for old VPN, proxy, or custom DNS entries.
- Forget and rejoin Wi-Fi. Use this for password or security profile problems.
Final guidance
For most connectivity problems, the fastest fix is local first: clear the Windows DNS cache, restart the browser, and renew the IP address. If the issue spreads across the home or office, clear the router’s temporary state with a restart. Keep factory reset as a last step. It solves some stubborn router problems, but it can also create a bigger mess if you do not have the setup details ready.

