Last active
August 15, 2019 09:25
-
-
Save MMnasrabadi/42c8e6c5c712a41e78e6545edf12217c to your computer and use it in GitHub Desktop.
Change the DNS Servers via Terminal on a Mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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