Difference between revisions of "Networksetup"
Jump to navigation
Jump to search
↑ https://www.unix.com/man-page/osx/8/NETWORKSETUP/
Line 6: | Line 6: | ||
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- | + | * <code>networksetup -setdnsservers Wi-Fi 8.8.8.8</code> |
* <code>networksetup -setdnsservers "USB 10/100/1000 LAN" 8.8.8.8 1.1.1.1</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> | ||
+ | * <code>networksetup -setsearchdomains Ethernet example.com</code> | ||
+ | * <code>networksetup -setsearchdomains Wi-Fi example.com</code> | ||
== Activities == | == Activities == |
Revision as of 14:31, 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
- Check configuration:
networksetup -setsearchdomains Ethernet example.com
networksetup -setsearchdomains Wi-Fi example.com
Activities
- Create an IP alias in macOS: https://apple.stackexchange.com/questions/296647/how-do-i-create-a-static-permanent-ifconfig-alias
See also
- 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: