How to Flush Your DNS Cache
Your device keeps a local cache of DNS answers so pages load faster. When a site moves to a new server, that cache can hold an old address and the page fails to load. Flushing it forces a fresh lookup.
Advertisement
Windows
- Press the Windows key, type cmd, and open Command Prompt.
- Type: ipconfig /flushdns
- Press Enter. You'll see 'Successfully flushed the DNS Resolver Cache.'
macOS
- Open Terminal (press Cmd + Space, type Terminal, hit Enter).
- Type: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- Press Enter and type your password when asked. Nothing prints, which is normal.
Google Chrome
Chrome keeps its own small DNS cache. Visit chrome://net-internals/#dns and click 'Clear host cache'. Do this along with the system flush above if a single site is misbehaving only in Chrome.
When flushing helps
- A website moved hosts and now loads the wrong page or an error.
- You just changed your own DNS records and want to see the update.
- You switched DNS providers and want a clean slate.