How to Flush DNS on Windows
Clear the DNS cache on Windows 10 or 11 with one command so your PC stops using stale addresses for a site that moved.
Windows caches the IP address for every domain you visit. When a site moves servers or you change DNS records, the cached answer can be wrong. Flushing it forces a fresh lookup.
Open Command Prompt
Press Windows + R, type cmd, and press Enter. Administrator rights are not required for this command.
Run the flush command
ipconfig /flushdns
You should see:
Successfully flushed the DNS Resolver Cache.
That is it. The cache is empty and the next lookup goes to your DNS server.
Check what Windows resolves now
nslookup yourdomain.com
The address shown is the fresh answer. If it is still the old one, your PC is fine and the stale record is upstream, at your router or ISP.
Clear Chrome's separate cache if needed
Chrome keeps its own DNS cache. Paste this in the address bar and click Clear host cache:
chrome://net-internals/#dns
If it still resolves wrong. Restart your router to clear its cache. If that does not help, the record's TTL has not expired at your ISP yet. Usually that is under an hour.
More Windows how-tos
- How to Boot into Safe Mode on Windows 11
- How to Change DNS Servers on Windows
- How to Change the Default Browser on Windows 11
- How to Check If a Port Is in Use on Windows
- How to Check Which Windows Version You Have
- How to Check Your PC Specs on Windows
- How to Enable Clipboard History on Windows
- How to Find Your IP Address on Windows
- How to Force Quit a Program on Windows
- How to Free Up Disk Space on Windows 11
- How to Map a Network Drive on Windows
- How to Open Command Prompt as Administrator
- How to Rename Multiple Files at Once on Windows
- How to Show File Extensions in Windows 11
- How to Take a Screenshot on Windows
- How to Turn Off Startup Programs on Windows 11
- How to Turn On Dark Mode on Windows 11
- How to Uninstall a Program on Windows 11
- How to Zip and Unzip Files on Windows