Difference between revisions of "Networksetup"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
Change [[DNS]] services: <code>networksetup -setdnsservers Network_Service_Name YOU.RDNS.IP</code>
 
Change [[DNS]] services: <code>networksetup -setdnsservers Network_Service_Name YOU.RDNS.IP</code>
 
* <code>networksetup -setdnsservers Wi-FI 8.8.8.8</code>
 
* <code>networksetup -setdnsservers Wi-FI 8.8.8.8</code>
* <code>networksetup -setdnsservers "USB 10/100/1000 LAN" 8.8.8.8</code>
+
* <code>networksetup -setdnsservers "USB 10/100/1000 LAN" 8.8.8.8 1.1.1.1</code>
 
::Check configuration: <code>[[scutil --dns]]</code>
 
::Check configuration: <code>[[scutil --dns]]</code>
  

Revision as of 14:26, 21 January 2020

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


  • networksetup -listallnetworkservices


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

  • networksetup -setdnsservers Wi-FI 8.8.8.8
  • networksetup -setdnsservers "USB 10/100/1000 LAN" 8.8.8.8 1.1.1.1
Check configuration: scutil --dns


Activities

See also

  • https://www.unix.com/man-page/osx/8/NETWORKSETUP/
  • Advertising: