How to Flush DNS cache in Mac OS X?

What is the Windows ipconfig /flushdns equivalent in Mac OS X?
Who is Participating?
moduloConnect With a Mentor Commented:
Closed, 125 points refunded.
Community Support Moderator
Experts Exchange
I'm not sure there's a need for it in OS X.
alexrsAuthor Commented:
When I change the IP address of an entry in the hosts file the system keeps resolving the associated name to the old address.
I figured out that if you go to Network Preferences and change the interface configuration (ex.: to manual address and then back to DHCP) it seems to reload it and clean the DNS cache. As a matter of fact I was expecting that "ifconfig down" and then "up" would cause the same effect, but it doesn't. I will stick to this workaround as the need is not very frequent.

Thanks anyway.

alexrsAuthor Commented:
Just found the equivalent to Windows' ipconfig /flushdns:

lookupd -flushcache
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.