Skip to content
Network Fixes

How to Flush DNS Cache on Mac

Step-by-step guide to flush DNS cache on macOS to fix network connectivity issues.

Solution Steps

  1. Open Terminal app (Applications → Utilities → Terminal).
  2. For macOS Ventura or later, run: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. For older macOS versions, run: sudo killall -HUP mDNSResponder
  4. Enter your Mac password when prompted (password won't show as you type).
  5. Press Enter to execute the command.
  6. DNS cache is now flushed. Restart your Mac if issues persist.

Related Keywords

flush dns macmac dns cacheclear dns mac