Networksetup

From wikieduonline
Revision as of 08:29, 21 September 2022 by Welcome (talk | contribs) (→‎See also)
Jump to navigation Jump to search

networksetup[1] is a macOS configuration command for network settings.



Change DNS services: networksetup -setdnsservers Network_Service_Name YOU.RDNS.IP

Check configuration: scutil --dns
  • networksetup -setsearchdomains Ethernet example.com
  • networksetup -setsearchdomains Wi-Fi example.com
Check configuration: scutil --dns
  • networksetup -setsearchdomains "USB 10/100/1000 LAN" example.com
Check configuration: scutil --dns | grep "search domain"

Activities

See also

Advertising: