Solved

How to Flush DNS cache in Mac OS X?

Posted on 2004-04-16
5
41,477 Views
Last Modified: 2013-11-17
What is the Windows ipconfig /flushdns equivalent in Mac OS X?
0
Comment
Question by:alexrs
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 30

Expert Comment

by:weed
ID: 10843737
I'm not sure there's a need for it in OS X.
0
 

Author Comment

by:alexrs
ID: 10869124
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 10880284
Closed, 125 points refunded.
modulo
Community Support Moderator
Experts Exchange
0
 

Author Comment

by:alexrs
ID: 10880530
Just found the equivalent to Windows' ipconfig /flushdns:

lookupd -flushcache
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Smartwatches: just a fashion accessory or a useful device for all? The Apple Watch (http://www.apple.com/watch/) was launched in April of 2015 and has become a new way for iPhone users to stay connected. Ranging from $349 to $17,000, the Apple Watch…
In this article we will discuss some EI Capitan Mail app issues and provide some manual process to resolve them.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

690 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question