I want to display the DNS servers that are used by the current network setup on OS X, from the command line.
How to display the current DNS servers from the command line under OS X
command linedns
Related Question
- MacOS – How to display in console the domain names used by the OS X 10.10 DNS resolver
- How to Set Display Settings Using Command Line on macOS
- macOS Command-Line – Ask Remote Server for Current Date-Time
- Apple ID Command Line – Is It Possible to Query the Current User’s Apple ID from the Command Line?
- How does one make a command line authoritative DNS query using macOS Mojave native host name and address resolution mechanism(s)
Best Answer
There are several ways - here are two:
-or-