MacOS – How to check what DNS server I’m using (on Mac OS X)


In Mac OS X, how do I check what DNS server I'm currently using (preferably a command line solution)?

System Preferences > Network shows, which is my router's address and not the real DNS server.

Best Answer

You could try issuing a scutil --dns | grep 'nameserver\[[0-9]*\]' at the command line. Should give you a list of DNS servers configured on your system.

Related Question