Deprecated: Using null as the key parameter for array_key_exists() is deprecated, use an empty string instead in /home/ayesha/paxitrack.com/wp-content/plugins/kadence-blocks-pro/includes/dynamic-content/class-kadence-blocks-pro-dynamic-content.php on line 1295
Learning how to flush DNS cache in Windows 11 is one of the quickest fixes you can try when a website suddenly refuses to load on your PC while everything else seems fine. Your computer quietly stores a local record of the websites you have visited so it can reach them faster next time. Most of the time that record helps. Occasionally it goes stale or gets corrupted, and then your browser spins, shows an error, or lands on the wrong page — even though your internet connection is working.
The good news is that clearing it takes about thirty seconds and involves a single command. You don’t need to install anything, and it won’t delete any of your files, passwords, or browsing history. This guide walks you through the standard method plus two alternates, explains when flushing actually helps (and when it won’t), and shows you what to try if the problem sticks around.
Quick Answer
To flush the DNS cache in Windows 11, open the Start menu, type cmd, right-click Command Prompt and choose Run as administrator. Type ipconfig /flushdns and press Enter. When you see the message “Successfully flushed the DNS Resolver Cache,” you’re done. That’s the whole procedure — no restart required.
What the DNS Cache Does — and Why It Goes Stale
Every time you type a website address like example.com, your PC has to translate that name into a numerical IP address before it can connect. That translation is handled by the Domain Name System (DNS). To speed things up, Windows keeps a short-term memory — the DNS resolver cache — of recent lookups, so repeat visits skip the translation step.
The trouble starts when that memory holds outdated information. Websites change their server addresses more often than people realise: a site moves to a new host, a CDN reroutes traffic, or your ISP updates its own DNS records. If your cache still points at the old address, the page fails to load. A corrupted cache entry — sometimes caused by a bad network interruption or misbehaving software — can produce the same symptom. Flushing simply wipes that local memory clean, forcing Windows to look up every address fresh from now on.
How to Flush DNS Cache in Windows 11 Using Command Prompt
This is the standard method and the one most technicians use. It works on every edition of Windows 11.
- Click Start (or press the Windows key) and type
cmd. - Right-click Command Prompt in the results and select Run as administrator. Confirm the permission prompt.
- Type
ipconfig /flushdnsexactly as shown and press Enter. - Wait for the confirmation: “Successfully flushed the DNS Resolver Cache.”
A common mistake is running the command in a normal (non-admin) prompt. The flush may appear to work but sometimes fails silently on locked-down systems, so always use the elevated prompt to be sure. If you see an error about insufficient privileges, you skipped step 2.
Alternate Method: Windows Terminal
If you prefer the newer interface, right-click Start and choose Terminal (Admin). Type ipconfig /flushdns and press Enter. It runs the exact same command under the hood — Terminal just replaces the old Command Prompt window. This is handy if you already live in Terminal for other tasks.
Alternate Method: The Run Dialog
Press Windows key + R, type ipconfig /flushdns into the Run box, and press Enter. A black window will flash briefly and close on its own — that’s the command running. This method is fast but gives you no confirmation message, so use one of the methods above if you want to verify the result visually.
How to Confirm the Flush Actually Worked
After flushing, you can check that the cache is empty by typing ipconfig /displaydns in the same elevated prompt. Before a flush, this command dumps pages of stored entries. Right after a successful flush, it should return almost nothing (or just a header) until you start browsing again and entries rebuild. This is a useful sanity check if you’re troubleshooting methodically rather than guessing.
Then open the problem website again in a fresh browser tab. If it loads, the stale cache was your culprit. If it still fails, the issue lies elsewhere — and the next sections will point you in the right direction. Note that flushing alone fixes DNS problems on your PC only; if the same site fails on your phone and your PC, the problem is upstream (your router or ISP), and no amount of flushing will help.
When Flushing the DNS Cache Actually Helps
Flushing is a precise tool, not a cure-all. Here’s an honest breakdown of which symptoms it addresses:
| Symptom | Will flushing help? |
|---|---|
| A specific website won’t load, but others work fine | Likely yes — classic stale-entry case |
| Browser shows DNS_PROBE_FINISHED_NXDOMAIN or similar DNS error | Often yes as a first step |
| Site loads on your phone but not your PC on the same network | Likely yes — points to the PC’s local cache |
| You recently switched VPNs or DNS servers and sites misbehave | Yes — old entries conflict with new settings |
| Nothing loads anywhere, on any device | No — that’s your router or ISP; restart the router instead |
| Downloads are slow but everything loads | No — this is a speed issue, not a lookup issue |
| You can’t connect to your office server by name | Maybe — worth trying, but could be a network policy |
If you’re dealing with a broader DNS problem rather than a single stubborn site, our guide on how to fix DNS errors on Windows covers the wider set of causes, from wrong server settings to router-level issues.
If Flushing Didn’t Fix It: What to Try Next
DNS cache flushes solve a narrow category of problems. If the site still won’t load, work through these in order:
- Clear your browser’s DNS cache too. Chrome, Edge, and Firefox keep their own separate DNS caches. In Chrome or Edge, visit
chrome://net-internals/#dnsand click “Clear host cache.” In Firefox, it’s cleared with the regular browsing data. - Restart your router. Unplug it for 30 seconds and plug it back in. Routers cache DNS too, and a stuck router cache causes exactly the same symptoms as a stuck PC cache.
- Try a different DNS server. Your ISP’s default DNS servers occasionally have bad days. Switching to a well-known public DNS (set in your adapter’s IPv4 properties) often resolves stubborn lookup failures instantly.
- Run the release/renew cycle. In the same admin prompt, run
ipconfig /releasefollowed byipconfig /renew. This forces your PC to renegotiate its network address with the router, which can clear up addressing problems that mimic DNS failures. - Do a full network reset. If nothing else works, resetting network settings in Windows 11 reinstalls every network adapter and returns all settings to defaults. It’s the heavy hammer — save it for last because you’ll need to re-enter Wi-Fi passwords.
If your problem is “connected but nothing loads” rather than DNS-specific, the walkthrough in our Ethernet connected but no internet guide covers the same diagnostic logic for wired connections.
A Quick Security Note: Skip the “DNS Fixer” Downloads
Search results for DNS problems are full of third-party “DNS fixer” utilities promising one-click repairs. You don’t need them — everything in this article uses tools already built into Windows. Downloadable network “optimisers” are a classic delivery method for adware and worse, and they can change settings in ways that are hard to undo. Stick to the built-in commands, and keep your system clean with standard Windows Security scans instead.
For broader digital protection, especially if you run a business from your PC, our UAE cyber insurance guide explains how companies in the Emirates cover the financial side of cyber incidents. And if you work from home, a reliable connection is doubly important — our Dubai remote work rules guide covers the legal side of working remotely in the emirate.
Frequently Asked Questions (FAQs)
Will flushing the DNS cache delete anything important?
No. The DNS cache is temporary by design — it holds recent website lookups so pages load faster. Flushing it deletes only those temporary entries. Your files, passwords, bookmarks, browsing history, and settings are completely untouched. The cache rebuilds itself automatically within minutes of normal browsing.
Do I need to restart my computer after flushing the DNS cache?
No restart is needed. The flush takes effect immediately. Just refresh the problem page in a new tab. If you want to be thorough, close and reopen your browser so it picks up the fresh lookups.
How often should I flush the DNS cache?
Only when you have a reason to — there’s no maintenance schedule for this. Windows manages the cache sensibly on its own, and entries expire automatically. Flushing weekly “just in case” does nothing useful and can make your first visits to sites marginally slower until the cache repopulates.
Why does the flush command say it worked but the site still won’t load?
Either the problem isn’t DNS-related at all, or the stale entry lives somewhere else — your browser’s internal cache or your router’s cache are the usual suspects. Work through the “what to try next” section above. If the site fails on all your devices, the site itself or your ISP’s DNS is the problem, and that’s outside your PC’s control.
Is ipconfig /flushdns the same on Windows 10 and Windows 11?
Yes. The command and the procedure are identical across Windows 10 and Windows 11. Everything in this guide applies to both, and the Microsoft support article on fixing Wi-Fi connection issues in Windows covers the wider troubleshooting flow for both versions.
Can flushing the DNS cache fix slow internet?
Generally no. DNS lookups take milliseconds, so a stale cache causes failures, not slowness. If your connection is slow but working, the cause is bandwidth, signal quality, or network congestion — flushing won’t touch any of those. For a systematic approach to connection problems, see our complete Windows networking troubleshooting guide.
The Bottom Line
Flushing the DNS cache in Windows 11 is a fast, safe, thirty-second fix for a specific family of problems: websites that won’t load because your PC remembers an outdated address for them. Open an admin Command Prompt, run ipconfig /flushdns, and move on. When it works, it works instantly — and when it doesn’t, you’ve ruled out one cause in under a minute and can move on to the router, the browser cache, or your DNS server settings with confidence.
Last Updated: 8 October 2026
About the author: Asan Tata is a UAE-focused writer at Asantata34, covering driving, visas, banking, insurance and everyday UAE life. His guides are researched from official UAE government and regulator sources and updated regularly.
Asantata34 is an independent informational website, not affiliated with the UAE government or any agency mentioned; content is general information only, not legal, immigration or financial advice; verify critical details with official sources before acting.
Asan Tata is an independent information platform providing simple, practical guides on UAE visas, banking, insurance, driving licences, and government-related services. Our team researches information from reliable and official sources to make complex topics easier to understand.