ipconfig /flushdns clears the DNS resolver cache on a Windows computer, so the next lookup can request a fresh answer. This guide shows how to flush DNS on Windows, Mac, Android, iPhone and Chrome, then check whether your domain is resolving correctly after a nameserver or hosting change.
You need the domain name that is giving you trouble, access to the device or browser where you see the old site, and a second way to check the result. If you recently moved a website, keep the correct nameservers or DNS records ready so you can compare them with the result.
Use this quick map:
| Where the stale result may be stored | What to refresh |
|---|---|
| Windows computer | Windows DNS resolver cache with ipconfig /flushdns |
| Mac | macOS DNS service, then reconnect or reopen the browser |
| Android or iPhone | Reconnect the network or restart the device; there is no Windows-style universal command |
| Chrome | Chrome’s host cache and, if needed, its socket pool |
| Outside your device | A public DNS lookup such as Google Admin Toolbox Dig |
Flushing a local cache is safe for your website files and domain settings. It only makes that device ask for DNS information again; it does not edit your domain or force every DNS server on the internet to update immediately.
DNS translates a domain such as example.com into an IP address or another DNS record. To avoid asking a DNS resolver for the same answer every time, your operating system, browser, router and internet provider may keep answers for a period set by the record’s time to live, or TTL.
Windows’ ipconfig /flushdns flushes and resets the DNS Client resolver cache. Microsoft also documents that the cache can include negative entries, such as a previous “domain not found” answer. Removing those entries is useful when a record has been corrected but your computer is still remembering the old response.
It does not do these things:
That distinction matters after a host move. The command can make your computer query again, but an outside visitor may still receive a cached answer until the relevant DNS TTL expires.
ipconfig /flushdns on WindowsWhy: Use this when Windows opens an old website, shows a previous “server not found” result, or keeps resolving a domain to an earlier host.
Command Prompt. ipconfig /flushdns What success looks like: Windows should report, “Successfully flushed the DNS Resolver Cache.” The command normally completes quickly and does not change your Wi-Fi password, website files or domain records.
Microsoft lists /flushdns as the option for flushing the DNS client resolver cache in its official ipconfig documentation. If you want to inspect the cache before clearing it, run ipconfig /displaydns in Command Prompt.
If Windows says that ipconfig is not recognised, you are probably not in a normal Windows Command Prompt or PowerShell session. Open Command Prompt from Start and run the command again. If it says access is denied, reopen the window with Run as administrator.
Why: macOS does not use the Windows ipconfig /flushdns command. Its DNS lookups are handled by macOS networking services, so use Terminal to ask the DNS responder to reload.
sudo killall -HUP mDNSResponder What success looks like: Terminal may return to the prompt without a success message. Test the domain again in a new browser window or with dig example.com.
The exact DNS service details can vary between macOS releases. If the command returns an error or the issue affects every website, restart the Mac and reconnect to the network before trying more advanced changes. Do not change DNS server addresses just to flush a cache; that is a separate troubleshooting step.
Why: Phones do not provide one cross-version equivalent of ipconfig /flushdns. Reconnecting the network is the least disruptive way to make the phone establish fresh network connections.
What success looks like: the site loads with the current DNS answer. Clearing an app cache should not remove your photos or website files, but do not choose Clear storage unless you are willing to reset the app’s local data.
What success looks like: the site resolves in Safari or your other browser after the device reconnects. Apple says that resetting network settings removes saved Wi-Fi networks, passwords, VPN settings and other network configuration, so reserve Settings > General > Transfer or Reset [device] > Reset > Reset Network Settings for cases where simpler steps fail. Apple’s Wi-Fi troubleshooting guide explains this trade-off.
Why: Flushing Windows or macOS does not necessarily remove an answer that Chrome has kept in its own host cache. Use this step when another browser opens the site correctly but Chrome still shows the old page or an old error.
chrome://net-internals/#dns in the address bar.chrome://net-internals/#sockets.What success looks like: Chrome requests the domain again and shows the same result as another browser or a fresh private window. If the internal page is unavailable in your Chrome version, fully quit and reopen Chrome, then use Chrome’s normal browsing-data settings to clear cached files.
Do not start by deleting cookies or saved passwords. Those are different from the host cache and are usually unrelated to a nameserver change.
Why: A local flush cannot tell you whether the rest of the internet has received your new DNS configuration. An external lookup separates a local cache problem from a nameserver, record or propagation problem.
https://, for example example.com.NS for nameservers, A or AAAA for an address, CNAME for an alias, or MX for email routing.What success looks like: the public result shows the intended nameservers or record value, and the website opens from more than one network. If Google’s lookup and your device disagree, the local device or network may still have a cached answer. If several external lookups show the old answer, check the authoritative DNS settings and wait for the old record’s TTL to expire.
You can also use HostKarle’s WHOIS lookup to confirm that the domain is registered and inspect its basic registration information. WHOIS and DNS are different checks: a registered domain can still have incorrect or incomplete DNS records.
Flush the device cache after you have completed the actual domain change. For example, if you moved a WordPress website, first copy the site and database, verify the new hosting account, and then update the domain’s DNS or nameservers. The flush is the final local refresh, not the step that moves the website.
If you are moving to HostKarle, follow the guide to point your domain to hosting. If you need the correct delegation values, see how to find HostKarle nameservers and update them. For a WordPress move, keep the migration checklist in How to migrate your WordPress website manually open while you test the new site.
The order is:
NS, A, AAAA, CNAME or MX externally, depending on what you changed.Work through these checks in order:
NS, not only the website’s A record. If the site uses IPv6, check AAAA as well as A.MX records still point to the previous mail service, or email may work while the website’s A record is wrong.If Google’s public lookup has stale data after a recent registrar or DNS-host change, Google documents a Public DNS cache-flush tool. That refreshes Google Public DNS; it does not change your domain records or every resolver worldwide.
ipconfig /flushdns do?It clears the DNS Client resolver cache on Windows. The next time Windows needs an address for a domain, it can request a fresh answer from the configured DNS resolver. It does not edit your domain, nameservers or hosting account.
Only flush it when you have a specific stale or incorrect DNS result to troubleshoot, such as after changing a record or moving a website. There is no benefit in running it on a routine schedule because normal cache expiry already refreshes DNS answers.
No. It refreshes the cache on your device only. Other resolvers still follow the TTL of their cached answer, so check the record externally and allow the relevant caches to expire after a nameserver or DNS change.
The old answer may be cached by Chrome, your router, your ISP or an external DNS resolver. It may also mean the nameservers or DNS record were changed at the wrong provider. Compare the result from another browser, another network and an external DNS lookup before changing the record again.
ipconfig /flushdns command for Mac?No. That is a Windows command. On macOS, open Terminal and run sudo killall -HUP mDNSResponder, then reopen the browser; restarting the Mac and reconnecting Wi-Fi are simpler fallbacks if the command does not help.
Compare zoho mail alternatives for Indian businesses by rupee cost, IMAP access and mailbox limits,…
Compare Wix alternatives for Indian small businesses: see 3-year rupee costs, WordPress hosting, migration limits,…
Titan email price in India explained with mailbox costs, features, team totals and a comparison…
HostKarle vs Bluehost compares Indian shared hosting prices, renewal bills, email, SSL, backups, panels and…
Learn how to write blog in hindi with WordPress, Hindi typing tools, domain and hosting…
Compare Google Workspace alternatives in India by yearly rupee cost, email features and migration effort…
This website uses cookies.