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.
|
feedback
|
This question came from our site for system administrators and desktop support professionals.
|
Your router is acting as a DNS forwarder, you ask your router and your router asks a DNS server for you. You need to login to your router web config to figure out what it's using, or you could just enter so directly into your Network configuration. | |||
|
feedback
|
|
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. | |||||||
feedback
|
|
That is the DNS server your mac is using. Your router is running a caching DNS server, and setting itself as the DNS server via DHCP. If you login to your router, you might be able to find out which DNS servers it uses. | |||
|
feedback
|