How to Clear Your DNS Cache on Windows 10 and 11
Updated: Sep 27
A website won't load, or it loads an old version of the page. Maybe ping or nslookup is pointing to the wrong IP address. When a site moves to a new server or something changes on your network, your computer can hold on to the old address. Clearing the DNS cache makes it look up the address fresh.
These steps work on both Windows 10 and Windows 11.
What Is the DNS Cache?
Every time you visit a website, your computer asks a DNS server for the site's IP address, then saves the answer for a while so the next visit is faster. That saved list is the DNS cache. Usually it helps. But if an entry is out of date or corrupted, you end up at the wrong place, or nowhere at all.
Fix 1: Flush DNS With Command Prompt
Click Start and type Command Prompt.
Right-click it and choose Run as administrator.
Type this command and press Enter:
ipconfig /flushdnsYou should see "Successfully flushed the DNS Resolver Cache."

Fix 2: Clear Your Browser's DNS Cache
Browsers keep their own DNS cache, so if one website still won't load, clear it there too.
Edge or Chrome:
Type edge://net-internals/#dns in the address bar (in Chrome, use chrome://net-internals/#dns).
Click Clear host cache.

Firefox:
Type about:networking#dns in the address bar.
Click Clear DNS Cache.

Fix 3: Use PowerShell
Click Start, type PowerShell, right-click it and choose Run as administrator.
Run this command:
Clear-DnsClientCache
It does the same thing as ipconfig /flushdns. It's handy if you're writing a script.
Still Not Loading?
If clearing the cache didn't help, try these:
Restart your router and modem. They keep a DNS cache too.
Renew your network connection by running ipconfig /release and then ipconfig /renew in Command Prompt.
Try the site on your phone using mobile data. If it doesn't load there either, the problem is with the website, not your computer.
Turn off any VPN and try again.
Still Stuck?
If you're still having trouble reaching a site or service, IT-Tech can connect remotely and track it down.
Book a remote support session and we'll get you sorted out.


Comments