sincity Posted July 15, 2015 Share Posted July 15, 2015 http://cdn.mos.techradar.com/art/laptops/Apple/New%20MacBook%20(2015)/review/grasshopper-470-75.JPGWe recently talked about how to flush your DNS cache on your Mac should you have trouble connecting to certain websites or have other network difficulties within OS X. We now want to take another look at DNS, and specifically see how we can utilize discoveryutil to find additional details out about the DNS caches in OS X.UDNS Cache Statshttp://mos.futurenet.com/techradar/art/Features%202/computing%20how%20tos/how%20to%20check%20on%20dns%20cache%20stats/udns-cache-stats-420-90.JPGTo see the unicast DNS cache statistics, open up the Terminal app (located in /Applications/Utilities), then enter the following command:sudo discoveryutil udnscachestatsAfter entering this command, press return, and you will be prompted to specify your administrator password. When done, press return again. You'll see something like this:UDNS Cache Stats: Cached 310 of 5000This stat tells you how many DNS entries are currently cached on your Mac. When flushing the DNS cache, you will see this number drop back down to 0.Note that if you have multiple network interfaces, the stats will be repeated for each of the interfaces on your Mac.MDNS Cache Statshttp://mos.futurenet.com/techradar/art/Features%202/computing%20how%20tos/how%20to%20check%20on%20dns%20cache%20stats/mdns-cache-stats-420-90.JPGTo see the statics for the multicast DNS cache, simply open the Terminal again, but use this command instead:sudo discoveryutil mdnscachestatsAgain, you'll see something like this printed to the Terminal screen:MDNS Cache Stats: en0: Cached 169 of 7500Once again, the command will be repeated for each network interface on your Mac, so you may see multiple entries in the Terminal. If you flush the MDNS cache like we showed last week, then this number will also drop down to 0, letting you know that the cache has been cleared.http://rc.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/rc/1/rc.imghttp://rc.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/rc/2/rc.imghttp://rc.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/rc/3/rc.imghttp://da.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/a2.imghttp://pi.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/a2t.imghttp://rss.feedsportal.com/c/669/f/415085/s/48239ebd/sc/15/mf.gifhttp://feeds.feedburner.com/~r/techradar/software-news/~4/8UF02sImFOY Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.