Skip to main content

How to configure custom DNS on a macOS device

In this article, you will learn how to change, add, or remove the DNS settings on your macOS device.
 

 

Setting custom DNS on a macOS Sonoma device:
 

  1. Click the System Settings icon in the Dock, or choose Apple menu > System Settings.
    Apple menu with System Settings highlighted

     
  2. Select Network on the left. Afterward, click on the network you wish to customize DNS addresses on.
    System Settings Network with Wi-Fi Connected highlighted

     
  3. Click on Details... under the network you are connected to.
    Wi-Fi settings with Details highlighted

     
  4. Click DNS on the left. To edit a DNS entry, double-click on the DNS address, and you will be able to change it. If you want to remove it, select the DNS address by clicking on it once and then clicking the  -  sign.

    Here are the Surfshark DNS addresses:

    162.252.172.57
    149.154.159.92


    Wi-Fi details DNS tab with OK highlighted

    Once done, click OK.

 

Setting custom DNS on a macOS Monterey device:
 

  1. Click the System Preferences icon in the Dock, or choose Apple menu > System Preferences.
    Apple menu with System Preferences highlighted
     
  2. Click on the Network section.
    System Preferences with the Network icon highlighted
     
  3. Select the network you wish to configure your DNS on. In this case, you will configure the main Wi-Fi networks' DNS. After selecting the network, click on Advanced...
    Network preferences with Wi-Fi selected and Advanced highlighted
     
  4. In the new window, select the DNS section. After that, you will be able to add ( + ) or remove ( - ) DNS entries. Click on + to add your DNS entries.
    Wi-Fi DNS tab with the add DNS server plus button highlighted
     
  5. To edit a DNS entry, double-click on the DNS address, and you will be able to change it. If you want to remove it, select the DNS address by clicking on it once and then clicking the  -  sign.

    Here are the Surfshark DNS addresses:

    162.252.172.57
    149.154.159.92


    Wi-Fi DNS tab with two DNS servers listed and OK highlighted

    Once done, make sure to click OK.
     

  6. Lastly, click Apply on the Network window for the changes to save.
    Network preferences with Apply highlighted
     

 

 

 

You may also be interested in:

Was this article helpful?
Thank you for your feedback!