Leopard i lookupd

enviat per Ramon Salvadó el divendres 23 de Novembre del 2007 a les 08:49 hores

De vegades ens interessa refrescar el “caché” de dns per exemple quan modifiquem el fitxer /etc/hosts, per a fer-ho en leopard:

1
2
# El que abans era: lookupd -flushcache
dscacheutil -flushcache

Segons el man:

dscacheutil does various operations against the Directory Service cache including gathering statistics, initiating lookups, inspection, cache flush, etc. This tool replaces most of the functionality of the lookupd tool previously available in the OS.