Help

How to flush the DNS cache on Windows

Clear Windows’ local DNS resolver cache, check whether it helped, and understand what this step does not reset.

2 min readSources checked Our editorial policy

Flushing DNS clears cached name-resolution answers on your Windows device. It can help when Windows keeps using an outdated answer. It does not change your public IP, remove browser history or reset the DNS servers used by everyone on the network.

Clear the local cache

Save the exact website error before changing anything. On a device you administer, open Command Prompt and run:

ipconfig /flushdns

Windows should report that the DNS resolver cache was successfully flushed. If access is denied, use the administrator option only if you are authorised to manage that computer. On a work device, ask IT instead.

Microsoft also documents the PowerShell command Clear-DnsClientCache. You do not need to run both commands for the same purpose.

Test the original symptom

Return to the same website and try the same action. Avoid changing the VPN, Wi-Fi network and browser simultaneously. If the page now loads, the cache may have been involved, but one successful retry does not establish the entire cause.

If nothing improves, stop flushing repeatedly. Check whether the problem affects one domain, several domains or all internet access. Our DNS lookup can show a public resolver’s answer, although that answer is not a measurement of your normal device resolver.

What may still be cached

Your browser, local router and upstream DNS resolver can keep their own answers. Clearing Windows’ cache does not force the authoritative owner of a domain to publish a different record.

If you recently changed your own domain’s records, use its nameserver configuration and TTLs to investigate. If you are visiting someone else’s website, follow DNS server not responding and report the domain and exact error. Do not run unrelated network-reset commands simply because they appeared beside a DNS command online.

Sources

Check the linked sources for current details. If you spot an error, let us know which statement needs a correction.

1. learn.microsoft.com/en-us/windows-server/administration/windows-commands/ipconfig2. learn.microsoft.com/en-us/powershell/module/dnsclient/clear-dnsclientcacheRead this page as MarkdownSuggest a correction

Hide your IP for $0.

Download Zenshield, connect in the app and let websites see the VPN’s IP instead of yours.

Free access requires opt-in idle bandwidth sharing. You choose in the app and can opt out at any time.

Why it’s free
Zenshield / free VPN

Download your free VPN.

$0Subscription charges.

Choose your device. Install Zenshield, create your account and connect.

Download for Windows Download Android APK

Free access uses opt-in idle bandwidth sharing. You give consent in the app and can opt out at any time. Sharing is required for free VPN access.

How the free exchange works ↗