In Mac OS X, how do I check what DNS server I'm currently using (preferably a command line solution)?
System Preferences > Network
shows 192.168.1.1
, which is my router's address and not the real DNS server.
dnsmacos
In Mac OS X, how do I check what DNS server I'm currently using (preferably a command line solution)?
System Preferences > Network
shows 192.168.1.1
, 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.