Skip to main content

How to change DNS on macOS?

Updated over a week ago

Step 1: Open Network Settings

  1. Click the Apple menu System Settings (or System Preferences).

  2. Select Network.

  3. Choose your active connection (Wi-Fi or Ethernet).

Step 2: Change DNS Servers

  1. Click Details (or Advanced… on older versions).

  2. Open the DNS tab.

  3. Click + to add new servers:

    • Google: 8.8.8.8, 8.8.4.4

    • Cloudflare: 1.1.1.1, 1.0.0.1

  4. Remove old entries with , then click OKApply.

Your Mac will now use the new DNS servers.

Step 3 (Optional): Flush DNS Cache

  1. Open Terminal.

  2. Run:

    sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Enter your password if prompted.

Did this answer your question?