Difference between revisions of "Networksetup"
Jump to navigation
Jump to search
↑ https://www.unix.com/man-page/osx/8/NETWORKSETUP/
Line 12: | Line 12: | ||
* <code>networksetup -setsearchdomains Ethernet example.com</code> | * <code>networksetup -setsearchdomains Ethernet example.com</code> | ||
* <code>networksetup -setsearchdomains Wi-Fi example.com</code> | * <code>networksetup -setsearchdomains Wi-Fi example.com</code> | ||
+ | ::Check configuration: <code>[[scutil|scutil --dns]]</code> | ||
* <code>networksetup -setsearchdomains "USB 10/100/1000 LAN" example.com</code> | * <code>networksetup -setsearchdomains "USB 10/100/1000 LAN" example.com</code> | ||
− | ::Check configuration: <code>[[scutil|scutil --dns]]</code> | + | ::Check configuration: <code>[[scutil|scutil --dns]] | grep "search domain"</code> |
== Activities == | == Activities == |
Revision as of 05:34, 22 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
- Check configuration:
networksetup -setsearchdomains Ethernet example.com
networksetup -setsearchdomains Wi-Fi example.com
- Check configuration:
scutil --dns
- Check configuration:
networksetup -setsearchdomains "USB 10/100/1000 LAN" example.com
- Check configuration:
scutil --dns | grep "search domain"
- Check configuration:
Activities
- Create an IP alias in macOS: https://apple.stackexchange.com/questions/296647/how-do-i-create-a-static-permanent-ifconfig-alias
- Renew DHCP address in your macOS from command line
See also
- macOS:
networksetup
,ifconfig
,ipconfig [ getifaddr ]
,scutil
- macOS: macOS versions, iTerm2, Homebrew, FileVault, System Integrity Protection,
dscacheutil
,networksetup
, XNU kernel, APFS, diskutil, mdfind, Keychain Access, Growl, Activity Monitor, sidecar, macOS FHS, Apple Notification Center,sw_vers
, Spotlight,pbcopy
, MacOS application firewall,Applesimutils
, Automatic login,security (command)
,codesign
,spctl
, Alfred, Xcode,system_profiler
,log show
, MacOS Preview, Rectangle app, Finder, macOS: Shortcuts, SEP, osascript, macOS profile, UTM,softwareupdate, systemsetup, pmset
, macOS tips, macOS Dock, Automator, SIP, System Preferences,installer, cryptex
, AirPlay, macOs first setup, Universal Control, menu bar, IPSW - DNS: Linux DNS, IP,
systemd-resolve
,/etc/hosts
,whois
, Domain registrar,dig
,host
,nslookup
,scutil --dns
dnsmasq
,bind
,delv
,.local
,.internal, .onion
, FQDN, TTL,/etc/resolv.conf
,/etc/systemd/resolved.conf
,dscacheutil
(macOS),hostname, hostnamectl
,bind
,resolvectl status
, DNS sinkhole, Domain name server, LLMNR, Resource records:MX, TXT, NS
, CAA, SSHFP, Apex, CNAME, Wildcard DNS records, Subdomain, /etc/nsswitch.conf,1.1.1.1
,8.8.8.8, CoreDNS, dnsPolicy:
, Google Public DNS, DNS caches, Kubernetes ExternalDNS, DNS forwarding, IDNA2008, DNS-1035, Domain name registrars, Split-view DNS, Pi-hole, NextDNS
Advertising: