How to Flush DNS Cache on Windows 11 (2026 Guide)
Clear the Windows 11 DNS cache with CMD, PowerShell, or Chrome. Complete guide with commands, browser cache steps, benefits, and troubleshooting.

How to Flush DNS Cache on Windows 11 (2026 Guide)
Windows 11 keeps a running list of every domain your PC recently looked up so it doesn't have to ask a DNS server again for a while. Most of the time this is invisible and helpful. When it's wrong — after you switch DNS providers, when a site moved to a new IP, or when Chrome throws DNS_PROBE_FINISHED_NXDOMAIN — you have to clear it manually. This guide covers every way to do that on Windows 11 in 2026.
Table of Contents
- What the Windows 11 DNS cache is
- When you should flush it
- Method 1 — Flush DNS with Command Prompt
- Method 2 — Flush DNS with PowerShell
- Method 3 — Flush DNS with the Run dialog
- Clearing Chrome's internal DNS cache
- Clearing Edge's internal DNS cache
- Verifying the cache is actually empty
- Benefits and non-benefits of flushing DNS
- Common mistakes and troubleshooting
- FAQ

What the Windows 11 DNS Cache Is
The DNS Client Service (dnscache) stores every recent name-to-IP mapping in memory. Each entry has a Time-To-Live (TTL) set by the domain's authoritative server — usually anywhere from 60 seconds to 24 hours. Until the TTL expires, Windows re-uses the cached IP instead of asking your resolver again.
That's a small speed win. But if the cached record is wrong — the site moved, your DNS server was misconfigured, or a bad NXDOMAIN got cached — the browser keeps using the wrong answer until you flush.
When You Should Flush It
- You just switched to a new DNS resolver (Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 9.9.9.9).
- You migrated a website to a new host and want to see the new server.
- You see DNS_PROBE_FINISHED_NXDOMAIN or ERR_NAME_NOT_RESOLVED in Chrome or Edge.
- You suspect your DNS was hijacked (redirected to a phishing page).
- You changed the hosts file and the change doesn't seem to take effect.
Method 1 — Flush DNS with Command Prompt
- Press the Windows key, type cmd.
- Right-click Command Prompt in the results and choose Run as administrator.
- Approve the UAC prompt.
- Type ipconfig /flushdns and press Enter.
- You should see: 'Successfully flushed the DNS Resolver Cache.'
If it says 'Could not flush' you didn't run as administrator, or the DNS Client Service is disabled. Start it under Services (services.msc) and try again.
Test whether a site's new IP has propagated worldwide.
Open DNS LookupMethod 2 — Flush DNS with PowerShell
- Press the Windows key, type powershell.
- Right-click Windows PowerShell, choose Run as administrator.
- Run: Clear-DnsClientCache
- There is no confirmation output — success is silence.
- To view the current cache first (or after) run: Get-DnsClientCache
Get-DnsClientCache is useful for verifying the flush worked — an empty result confirms it. It's also handy for seeing what your PC has cached before you flush.
Method 3 — Flush DNS with the Run Dialog
Press Windows + R, type cmd /c "ipconfig /flushdns & pause" and press Ctrl+Shift+Enter to run it elevated. The pause keeps the window open long enough to read the result.
Clearing Chrome's Internal DNS Cache
Chrome maintains a separate DNS cache that survives the Windows flush. Skipping this step is the #1 reason people think 'flushing DNS didn't work'.
- Open Chrome. In the address bar type chrome://net-internals/#dns and press Enter.
- Click the 'Clear host cache' button.
- Open a new tab and go to chrome://net-internals/#sockets.
- Click 'Flush socket pools'.
- Close every Chrome window and reopen the browser.
Clearing Edge's Internal DNS Cache
Microsoft Edge uses the same Chromium engine so the process is identical — just swap the URL prefix. Visit edge://net-internals/#dns, click Clear host cache, then edge://net-internals/#sockets → Flush socket pools, then restart Edge.
Verifying the Cache Is Actually Empty
In PowerShell (as admin), run Get-DnsClientCache. If the output is empty, the OS cache is clear. In Chrome, chrome://net-internals/#dns shows the 'Host resolver cache' — after a clear it should show 0 active entries.
Benefits and Non-Benefits of Flushing DNS
Real benefits
- Fixes 'site not found' errors after a domain moves servers.
- Forces Chrome and Edge to re-check DNS after you change DNS providers.
- Removes cached malicious or hijacked DNS answers.
- Helps developers see changes made to a domain's records without waiting for TTLs.
Not benefits (myths)
- It won't make your internet 'faster' in general use.
- It won't fix Wi-Fi problems, high latency, or slow downloads.
- It won't recover a hacked account or block phishing on its own.
Common Mistakes and Troubleshooting
- Forgetting to run as administrator — the flush silently fails.
- Flushing Windows cache but leaving Chrome or Edge open with a stale internal cache.
- Setting IPv4 DNS but leaving IPv6 pointed at the ISP's broken resolver.
- Assuming a DNS flush will fix a router or ISP outage. It won't.
- Running ipconfig /flushdns from a PowerShell window that isn't elevated — the same 'access denied' issue applies.
Not sure which DNS server is fastest for you? Check our resolver comparison.
Compare DNS ServersFrequently Asked Questions
Do I need admin rights to flush DNS on Windows 11?+
Yes — Command Prompt or PowerShell must be run as administrator, otherwise ipconfig /flushdns silently fails or reports 'Could not flush the DNS Resolver Cache'.
How often should I flush the DNS cache?+
Only when you need to — after changing DNS servers, when a website changed IP, or when troubleshooting NXDOMAIN. Regular flushing offers no benefit and slows the first load of frequently visited sites.
Does flushing DNS speed up my internet?+
No. A clean cache actually adds a small delay on the next lookup. Flushing only helps when the cache holds bad or outdated records.
Why does the flush command say 'access denied'?+
You opened Command Prompt without elevation. Right-click the icon and choose Run as administrator, then run the command again.
Do I need to restart after flushing DNS?+
No, the effect is immediate. But you should close and reopen your browser so it picks up new DNS on the next request.
What's the difference between ipconfig /flushdns and Clear-DnsClientCache?+
They do the same thing — flush the DNS Client Service cache. ipconfig is the classic CMD tool; Clear-DnsClientCache is the modern PowerShell cmdlet. Either one works on Windows 11.
Does flushing DNS log me out of websites?+
No. DNS only maps names to IPs. Login sessions are stored in cookies, which are untouched.
Can I flush DNS with a scheduled task?+
Yes. Task Scheduler → New Task → run 'ipconfig /flushdns' at a chosen trigger, with 'Run with highest privileges' enabled. Useful only in rare edge cases.
Related articles
Browse all in IP & NetworkingWhat Is My IP Address? (Complete Guide 2026)
Read IP & NetworkingWhat Is DNS and How It Works (Beginner Guide)
Read IP & NetworkingIPv4 vs IPv6 Explained (Simple Comparison)
Read IP & NetworkingHow to Test Internet Speed Accurately
Read IP & NetworkingWhat Is a Proxy Server and How Does It Work? (2026 Guide)
Read IP & NetworkingWhat Is a Domain Name and How Does It Work? (2026 Guide)
ReadTry the related free tools
Hands-on utilities from DigiMetrics Hub that go with this guide.
WHOIS Lookup
Find domain registration details, owner info, expiry date and nameservers with our free WHOIS tool.
Open tool Network & IPReverse DNS
Perform a reverse DNS lookup to find the hostname associated with any IP address for free.
Open tool Network & IPWhat Is My IP
Instantly find your public IP address, location, ISP and timezone. Free, no signup required.
Open tool Network & IPIP Lookup
Look up any IP address and find its location, ISP, timezone and network details for free.
Open tool