Skip to main content

How can I display the current DNS servers from the command line under OS X?

I want to display the DNS servers that are used by the current network setup on OS X, from the command line.

sorin
  • 31.4k
  • 67
  • 171
  • 240