Jump to content

How to check on OS X DNS cache statistics


Recommended Posts

http://cdn.mos.techradar.com/art/laptops/Apple/New%20MacBook%20(2015)/review/grasshopper-470-75.JPG

We 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 Stats

http://mos.futurenet.com/techradar/art/Features%202/computing%20how%20tos/how%20to%20check%20on%20dns%20cache%20stats/udns-cache-stats-420-90.JPG

To see the unicast DNS cache statistics, open up the Terminal app (located in /Applications/Utilities), then enter the following command:

sudo discoveryutil udnscachestats

After 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 5000

This 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 Stats

http://mos.futurenet.com/techradar/art/Features%202/computing%20how%20tos/how%20to%20check%20on%20dns%20cache%20stats/mdns-cache-stats-420-90.JPG

To see the statics for the multicast DNS cache, simply open the Terminal again, but use this command instead:

sudo discoveryutil mdnscachestats

Again, you'll see something like this printed to the Terminal screen:

MDNS Cache Stats: en0: Cached 169 of 7500

Once 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.img

http://rc.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/rc/2/rc.img

http://rc.feedsportal.com/r/234565530477/u/49/f/415085/c/669/s/48239ebd/sc/15/rc/3/rc.img

http://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
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...