Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Trying to flush the local DNS cache. How is this done on Snow Leopard?

Using System Preferences and using the terminal?

share|improve this question
up vote 15 down vote accepted


sudo dscacheutil -flushcache


sudo killall -HUP mDNSResponder

In 10.6 the handling of Unicast DNS is now managed by mDNSResponder - dscacheutil -flushcache now just tells mDNSResponder to restart (the second command above).

share|improve this answer
See OS X: How to reset the DNS cache from the Apple support pages. – Joel Purra Jul 8 '13 at 9:10
dscacheutil -flushcache
share|improve this answer
can it be done via pref pane? – jdiaz Sep 9 '10 at 20:34
@jdiaz No. There is no option in System Preferences to flush the DNS cache. – ghoppe Sep 9 '10 at 21:28
After I upgraded to OS X Lion, dscacheutil -flushcache does not seem to work anymore on my system. Using Chealion's suggestion of sending a HUP signal to mDNSResponder does still work for me though. – user5118 Aug 5 '11 at 11:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.