Those containingĪ "domain" name will be used for queries matching the specified domain. Additional "supplemental" configurations follow. Resolver(5) configuration is considered to be the "default" configura. The -first- entry (resolver #1) is reportedly the active configuration.though I've seen plenty of cases where that's not the case.įrom man scutil The -dns option reports the current DNS configuration. In OSX Mavericks (10.9 - actually 10.6.3 up, I believe) if you want to see the active DNS configuration: scutil -dns
#Cisco anyconnect 4.5 mac os x quit not working how to#
Last, for those readers who are wondering how to get the in networksetup -getdnsservers, try using networksetup -listallnetworkservices Use dig to help determine if there are differences afoot. However if things seem weird, keep in mind that there are other possibilities too.
Generally you are safe assuming that the contents of System Preferences > Network, or the contents of networksetup -getdnsservers are where you are getting your DNS from. I know that this does not precisely answer your question, but hopefully this helps you realize that it is not always easy to find out what the "truth" is regarding DNS on a Mac. Your VPN client may have the ability to show you the routes and DNS servers, I know that mine does.
If you run $ man dig you get among other things, the following: The reason for this lies in the way that OS X handles DNS. The result of these multiple services means that there are situations whereby using Safari to access a website ( ) will take you to an IP address that OS X has retrieved from DNS (say 1.2.3.4) while at the same time, performing a dig $ dig will return different results. Per Essentially this means that OS X has multiple DNS clients depending on your configuration.
Second, it is important to note that OS X does not handle DNS like most systems. First, if networksetup -getdnsservers does not show anything, you don't have anything listed in System Preferences > Netowrk under "DNS Servers:".