Mac OS X: Flushing the DNS Cache Resolver

I originally posted this at http://www.318.com/TechJournal

So you need to empty your cache resolver, but you fire up your handylookupd but you’re getting a command not found error. What to do… Try dscacheutil, which let’s you do so very much more than lookupd. For example, using the -cachedump allows you to dump an overview of the cache contents. -cachedump has a slew of flags to get pretty granular with the output such as -entries and -buckets. -configurationallows you to access detailed information about your search policy. -statistics allows you to view detailed information on statistics of calls.

Examples of using these commands:
Emtpy the DNS Cache Resolver:
dscacheutil -flushcache

Dump cache with user entries:
dscacheutil -cachedump -entries user

Lookup all the users on a system:
dscacheutil -q user

Similar Articles:

Posted on November 24, 2007 at 12:15 pm by admin · Permalink
In: Mac OS X, Mac OS X Server · Tagged with: , , , , ,

No Responses

Subscribe to comments via RSS

  1. Written by admin
    on August 29, 2008 at 3:33 pm
    Permalink

    bob

Subscribe to comments via RSS

Leave a Reply