Find DNS server IP from command line

Find DNS server IP from command line

Here are the command line / Terminal.app commands you can use to retrieve the active DNS server IP addresses on any Mac. Launch the Terminal (Command-space for Spotlight, then type in Terminal). Type or paste in the following command: Mac OS X 10.7 Lion: networksetup...