Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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

2 Answers 2

up vote 14 down vote accepted

sudo dscacheutil -flushcache or 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
2  
@jdiaz No. There is no option in System Preferences to flush the DNS cache. –  ghoppe Sep 9 '10 at 21:28
1  
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

 
discard

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.