Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Updated November 30, 2026 · Written and reviewed under our editorial policy
Flushing DNS deletes the saved list of website addresses your computer uses, so the next visit looks each site up again. On Windows, run ipconfig /flushdns in Command Prompt. On a Mac, run sudo killall -HUP mDNSResponder in Terminal. Chrome keeps its own cache, which you clear at chrome://net-internals/#dns.
Windows 10 and 11:
Mac:
Chrome: open chrome://net-internals/#dns and click Clear host cache.
Source: Microsoft Learn, "ipconfig", and Apple Support, "Reset the DNS cache in OS X", checked 2026-11-28.
Flushing DNS empties the DNS cache, the list of recent name-to-address lookups your system keeps so it doesn't have to ask a DNS server every time. Each entry stays cached until its TTL (time to live) runs out, so after a change you can keep reaching an old address for a while. Flushing helps in three cases:
Flushing DNS is not a speed hack. Your computer has to look every site up again afterwards, so browsing is not faster. After a change on your own domain, check whether new DNS records have spread to DNS servers around the world before you flush anything.
Moved a site to a new host? Flush DNS on your machine, then check the live site from other locations on 3,000+ browsers with TestMu AI.
To flush DNS on Windows 11 and 10, use the ipconfig command. Microsoft describes /flushdns as the switch that "flushes and resets the contents of the DNS client resolver cache." Running Command Prompt as administrator is the safe default.
In PowerShell, the command Clear-DnsClientCache does the same job.
To flush DNS on a Mac, run one command in Terminal:
The command prints nothing when it works, so no output is normal. Apple's support article (now archived) gives this command for OS X 10.10.4 and later.
Flushing DNS on Linux depends on which service caches lookups on your system, and some installs don't cache DNS at all. Most current Ubuntu and Fedora installs use systemd-resolved. Check which one you run first:
If none of these is active, your system isn't caching DNS and there is nothing to flush. Other caches on the machine are a separate job; see how to clear cache in Linux.
Chrome's DNS cache is separate from the one in your operating system, so clear it too when a site still resolves to the old address.
The host cache holds addresses only. If the page itself still looks old, clear the browser cache in Chrome as well. Brave is built on Chromium and works the same way; here's how to clear the Brave DNS cache.

iPhone and Android don't offer a command to flush DNS. To clear the phone's cached lookups, restart it: switch the phone off and on again.
If one Android app keeps showing stale content, clear that app's cache too.
If you still see the old site after you flush DNS, the old answer is cached somewhere other than your computer:
To see whether the new record has reached resolvers in other regions, run the domain through our free DNS propagation checker. If lookups fail on a work network, a proxy or firewall may be involved; here's how to check proxy, firewall and DNS settings.
Yes. Flushing DNS only clears cached address lookups. Your computer looks each site up again the next time you visit it, so the first visit to each site can take a moment longer.
Only when you need to: when a site won't load, or when a site has just moved to a new server and you still see the old one. There is no benefit to flushing DNS on a schedule.
No. Flushing DNS removes saved address lookups only. Your browsing history, cookies, saved passwords and browser cache stay as they are.
Run ipconfig /displaydns in Command Prompt. Straight after a flush it shows a short or empty list, which then fills up again as you browse.
Your router or your internet provider's DNS server may still hold the old record until its TTL (time to live) expires. A line in your hosts file or the browser's own cache can also keep sending you to the old address.
KaneAI - Testing Assistant
World’s first AI-Native E2E testing agent.

TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance