Skip to content

Instantly share code, notes, and snippets.

@MMnasrabadi
Last active August 15, 2019 09:25
Show Gist options
  • Save MMnasrabadi/42c8e6c5c712a41e78e6545edf12217c to your computer and use it in GitHub Desktop.
Save MMnasrabadi/42c8e6c5c712a41e78e6545edf12217c to your computer and use it in GitHub Desktop.
Change the DNS Servers via Terminal on a Mac
# 1.For add : Once Terminal is open, enter the following command:
$ networksetup -setdnsservers Wi-Fi 178.22.122.100 185.51.200.2
# then press [Enter]
# 2.For Delete :
$ networksetup -setdnsservers Wi-Fi "Empty"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment