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.
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.
cmd, Enter.ipconfig /flushdns and press Enter.sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder and confirm with your password.There is no message. The command takes effect immediately.
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.
chrome://net-internals/#dns (Edge: edge://net-internals/#dns) and click "Clear host cache".about:networking#dns and click "Clear DNS Cache".It is often quicker to use a private window or another device on mobile data.
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.
Last updated on 05/12/2026 at 21:04
Register your next domain with us and compare us with your current provider. The account is free.
Join for free now
