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.

We will cover the following:

  1. Setting custom DNS on a macOS Sonoma device
  2. Setting custom DNS on a macOS Monterey device

 

Setting custom DNS on a macOS Sonoma device:

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


  2. Select Network on the left. Afterward, click on the network you wish to customize DNS addresses on.


  3. Click on Details... under the network you are connected to.


  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



    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.


  2. Click on the Network section.


  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...


  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.


  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



    Once done, make sure to click OK.

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

 

 

 

You may also be interested in:

Was this article helpful?
Thank you for your feedback!