@finnm
macOS Oct 21, 2026

Flushing the DNS cache on a Mac

A website moved to a new server and my Mac still loads the old one while my phone gets the new one. I think I need to flush DNS. What's the Terminal command on recent macOS?
1

Leave A Reply

Log in to post an answer.

1 Answer

frank_gadget Oct 22, 2026
finnm
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder in terminal, then your password (nothing shows while you type). no confirmation message, it just returns. chrome keeps its own cache too, so restart the browser if a site still goes to the old address.