The resolver still has the old answer
Your router, ISP or public resolver may hold it until the TTL expires. See DNS propagation.
Monitor
Protect
Manage
By role
Security
Renewals
Monitoring
To flush the DNS cache, run ipconfig /flushdns on Windows, sudo killall -HUP mDNSResponder on macOS, or resolvectl flush-caches on Linux with systemd-resolved. Chrome keeps a separate cache that you clear at chrome://net-internals/#dns.
| System | Command | Source |
|---|---|---|
| Windows | ipconfig /flushdns | Microsoft Learn |
| macOS (OS X 10.10.4 and later) | sudo killall -HUP mDNSResponder | Apple support article 101481, archived |
| Linux with systemd-resolved | resolvectl flush-caches | systemd documentation |
| Chrome (browser cache only) | chrome://net-internals/#dns, then Clear host cache | Chromium developer write-up |
Apple marks its article archived and lists the command for OS X 10.10.4 and later, so confirm it against your macOS release if it fails.
# Windows (Command Prompt as administrator)
ipconfig /flushdns
ipconfig /displaydns :: view the cache
# macOS
sudo killall -HUP mDNSResponder
# Linux (systemd-resolved)
resolvectl flush-caches
resolvectl statistics # shows cache size and hitsType chrome://net-internals/#dns in the address bar.
Click "Clear host cache". This clears only the browser resolver cache, not the operating system or router.
Existing connections can still hold the old address; close the tab or restart the browser if the old site persists.
If it still resolves wrongly, run the operating system command above.
Your router, ISP or public resolver may hold it until the TTL expires. See DNS propagation.
Check the authoritative server with dig or nslookup before blaming a cache.
An entry in the hosts file wins over DNS for that name. Check it if only one site is wrong.
Many home routers cache DNS. Restarting the router clears that layer.
You cannot flush them from your device. Wait for the TTL, or use the provider cache purge tool if it offers one.
A VPN can change which resolver you use, so a record may look different with the VPN on and off.
Flushing DNS deletes the cached lookups stored on your device, so the next visit to a site asks a resolver again. It clears stale or negative entries, but does not change DNS records or other devices.
Open Command Prompt as administrator and run ipconfig /flushdns. Windows reports that the DNS Resolver Cache was flushed. ipconfig /displaydns lists what is cached.
Run sudo killall -HUP mDNSResponder in Terminal and enter your password. Apple documented this for OS X 10.10.4 and later; the article is archived, so confirm for your macOS version.
Yes. The cache simply refills as you browse, so the first lookups after a flush are marginally slower. Flushing does not remove any settings or files.
On a distribution using systemd-resolved run resolvectl flush-caches. Other setups use different resolvers, for example a local dnsmasq or nscd service, and each has its own restart or flush command, so check which one your system runs.
Not always. The operating system flush works immediately, but a browser keeps its own cache and open connections. Clear the browser host cache or restart the browser if the old address still shows.
Aepto monitors expiry, DNS, SSL and uptime for every domain you own and alerts you when something changes. Free for 3 domains.