Created
March 25, 2024 10:33
-
-
Save bipin-nag/e0f974984e3b082b25bb4fd4b2fe0f04 to your computer and use it in GitHub Desktop.
MacOS set DNS
This file contains 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
#!/bin/zsh | |
# networksetup -getdnsservers Wi-Fi | |
# 8.8.8.8 | |
# 8.8.4.4 | |
networksetup -setdnsservers Wi-Fi 192.168.29.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment