How to flush DNS Cache on Mac OS 10.5

Finally a way to flush the DNS cache on Mac OS 10.5 “dscacheutil -flushcache“. PC users have always had a way to do this with “ipconfig /flushdns” but Mac users usually had to restart. In Mac OS 10.4 there was “lookupd -flushcache” but that never quite worked 100% of the time. Here’s a bit of the MAN page and a link to the complete page via developer.apple.com.

dscacheutil — gather information, statistics and initiate queries to the Directory Service cache.

SYNOPSIS
dscacheutil -h dscacheutil -q category [-a key value]
dscacheutil -cachedump [-buckets] [-entries [category]]
dscacheutil -configuration dscacheutil -flushcache
dscacheutil -statistics

DESCRIPTION
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.

Mac OS X Manual Page For dscacheutil(1).

maatkit – Google Code

Maatkit (formerly MySQL Toolkit) contains essential command-line tools for MySQL, such as table checksums, a query profiler, and a visual EXPLAIN tool. It provides missing features such as checking whether slaves have the same data as the master.

maatkit – Google Code.

Follow

Get every new post delivered to your Inbox.