So you need to empty your cache resolver, but you fire up your handy lookupd 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. -configuration allows 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
