Skip to content

Instantly share code, notes, and snippets.

@bipin-nag
Created March 25, 2024 10:33
Show Gist options
  • Save bipin-nag/e0f974984e3b082b25bb4fd4b2fe0f04 to your computer and use it in GitHub Desktop.
Save bipin-nag/e0f974984e3b082b25bb4fd4b2fe0f04 to your computer and use it in GitHub Desktop.
MacOS set DNS
#!/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