SEARCH
TOOLBOX
LANGUAGES
Dscacheutil

Dscacheutil

From GarrettHoneycutt

Jump to: navigation, search

Contents

Mac OS X usage

This is for 10.5, as lookupd has been deprecated. From a linux perspective, this is gives you the functionality of nscd and getent

Show any cache

$ dscacheutil -cachedump -entries [category]

Categories:

  • group
  • host
  • mount
  • protocol
  • rpc
  • service
  • user

Show the host cache

$ dscacheutil -cachedump -entries host

Clear the host cache

$ dscacheutil -flushcache

Display a category's information

$ dscacheutil -q [category]

Lookup all users

$ dscacheutil -q user