Flush DNS cache in Leopard
There is something in leopard and all operating systems that bothered me since i started playing around with ip’s and generaly started being a system admin. How do i flush quick and dirty my machines dns query cache without restarting my network connections? Well in other systems dont know yet, but in leopard i found this great terminal command/application:
DSCACHEUTIL
Take a look at the first rows in man
dscacheutil(1) BSD General Commands Manual dscacheutil(1)
NAME
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.
Well if you ever need to flash you dns queries just do:
$ sudo dscacheutil -flushcache
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Biznet Infoservices Ltd
web statistics tool…
Good post, nicely written, thanks….
a http://vmedicalqf9vr.AUTOPARTSTHAI.INFO/tag/john+goodman+a+Bra/ : a…
goodman…