#How do I flush the DNS cache?

ElitedomainsFAQ: This is the help centre of ELITEDOMAINS. We are a domain provider that lets you manage domains simply and smartly. We also run a domain catcher, a domain marketplace and attractive landing pages to sell domains automatically.

You clear the DNS cache on Windows with ipconfig /flushdns, on macOS with sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and in the browser via its DNS page. This helps if you still see the old state after a change. Your internet provider's cache keeps the old record until the TTL expires.

#1) When does flushing the DNS cache help?

Your computer and browser store DNS answers for a while. If you changed an entry, for example your website's IP address, your device may still use the old address. After flushing, it asks again. How long other servers keep old answers is determined by the TTL.

#2) How do I flush the DNS cache on Windows?

  1. Open the command prompt: Windows key, type cmd, Enter.
  2. Type ipconfig /flushdns and press Enter.
  3. The message "Successfully flushed the DNS Resolver Cache" confirms it.

#3) How do I flush the DNS cache on macOS?

  1. Open Terminal.
  2. Type sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and confirm with your password.

There is no message. The command takes effect immediately.

#4) How do I flush the DNS cache on Linux?

On systems with systemd-resolved, such as Ubuntu, type resolvectl flush-caches; on older versions sudo systemd-resolve --flush-caches. If your system runs another DNS service such as dnsmasq, restart it.

#5) How do I flush the DNS cache in the browser?

  • Chrome and Edge: Open chrome://net-internals/#dns (Edge: edge://net-internals/#dns) and click "Clear host cache".
  • Firefox: Open about:networking#dns and click "Clear DNS Cache".
  • Safari: Safari uses the macOS cache; the command from section 3 is enough.

It is often quicker to use a private window or another device on mobile data.

#6) What if I still see the old state afterwards?

Then your internet provider's resolver or your router has stored the old answer. Restart the router or wait until the TTL has expired. If you query via a public resolver, you can flush its cache for a domain yourself, at Google Public DNS and at Cloudflare. Whether the change has reached the name server you check with dig, as described under old state after a change.

Was this article helpful?

Last updated on 05/12/2026 at 21:04

Let's go!
Create your account now

Register your next domain with us and compare us with your current provider. The account is free.

Join for free now

Screenshot of the domain portfolio in the app