Geek Posted June 3, 2011 Posted June 3, 2011 <div class="KonaBody"><p>You can quickly retrieve active DNS server IP addresses on any Mac by using the <a href="http://osxdaily.com/tag/networksetup/">networksetup</a> utility. Launch the Terminal and type the following:</p> <p><code>networksetup -getdnsservers airport</code></p> <p>Note that I’m specifying ‘airport’ because I primarily use a wireless connection, but you could also specify ethernet and bluetooth.</p> <p>Assuming there are several DNS servers set within Mac OS X’s networking preferences, you will see a report of each DNS server in the order of their priority, looking something like this:</p> <p><code>8.8.8.8 208.67.220.220 208.67.222.222 10.0.0.1</code></p> <p>For those wondering, the top most DNS IP in that sample list is Google’s Public DNS, the next two are from OpenDNS, with the last being a local router. If you need to, you can use a free utility like namebench to <a href="http://osxdaily.com/2010/02/23/find-a-fast-dns-server/">find a fast DNS server</a>.</p> </div> <p><a href="http://feedads.g.doubleclick.net/~a/iL-JmcAI44LGa09n4arJvSM4lLc/0/da"><img src="http://feedads.g.doubleclick.net/~a/iL-JmcAI44LGa09n4arJvSM4lLc/0/di" border="0" ismap="true"></img></a><br/> <a href="http://feedads.g.doubleclick.net/~a/iL-JmcAI44LGa09n4arJvSM4lLc/1/da"><img src="http://feedads.g.doubleclick.net/~a/iL-JmcAI44LGa09n4arJvSM4lLc/1/di" border="0" ismap="true"></img></a></p><div class="feedflare"> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=J727HqZXTfY:HehUaB9awtA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=J727HqZXTfY:HehUaB9awtA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=J727HqZXTfY:HehUaB9awtA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=J727HqZXTfY:HehUaB9awtA:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/osxdaily?i=J727HqZXTfY:HehUaB9awtA:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=J727HqZXTfY:HehUaB9awtA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/osxdaily?a=J727HqZXTfY:HehUaB9awtA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/osxdaily?d=qj6IDK7rITs" border="0"></img></a> </div><img src="http://feeds.feedburner.com/~r/osxdaily/~4/J727HqZXTfY" height="1" width="1"/> View the full article
Recommended Posts