I originally posted this at http://www.318.com/TechJournal
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
-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:
Dump cache with user entries:
dscacheutil -cachedump -entries user
Lookup all the users on a system:
dscacheutil -q user