macOS: Flush the DNS cache

This is common knowledge… but I don’t need to do it enough to have it memorized… and I’m tired of looking it up! So I’m writing it down here: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder There! Now it’s written down on the web in one more place… 🙄

December 10, 2025 · 1 min