DNS Command Line Configuration on macOS The following commands work on macOS High Sierra, not tested in previous versions Get DNS Resolvers $ scutil --dns | grep 'nameserver\[[0-9]*\]'