• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 41542
  • Last Modified:

How to Flush DNS cache in Mac OS X?

What is the Windows ipconfig /flushdns equivalent in Mac OS X?
0
alexrs
Asked:
alexrs
  • 2
1 Solution
 
weedCommented:
I'm not sure there's a need for it in OS X.
0
 
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.

 
0
 
moduloCommented:
Closed, 125 points refunded.
modulo
Community Support Moderator
Experts Exchange
0
 
alexrsAuthor Commented:
Just found the equivalent to Windows' ipconfig /flushdns:

lookupd -flushcache
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now