November 21, 2024
How to Clear Your DNS Cache in Mac OS X

How to Clear Your DNS Cache in Mac OS X

Posted May 29, 2011 at 11:45pm by iClarified
These are instructions on how to clear/flush your DNS Cache in Mac OS X. While this is very simple to do we get asked how a lot. You may need to do this after making changes to your hosts file.


LEOPARD AND SNOW LEOPARD
Step One
Launch Terminal from your Applications:Utilities folder.
How to Clear Your DNS Cache in Mac OS X

Step Two
Enter dscacheutil -flushcache into the Terminal window that appears and press the Enter key.
How to Clear Your DNS Cache in Mac OS X



TIGER
Step One
Launch Terminal from you Application:Utilities folder.
How to Clear Your DNS Cache in Mac OS X

Step Two
Enter lookupd -flushcache into the Terminal window that appears and press the Enter key.
How to Clear Your DNS Cache in Mac OS X


BONUS: WINDOWS
Step One
Press the Windows and R key then input cmd and click OK to launch the Command Prompt.
How to Clear Your DNS Cache in Mac OS X

Step Two
Enter ipconfig /flushdns into the Command Prompt window that appears and press the Enter key.
How to Clear Your DNS Cache in Mac OS X
Add Comment
Would you like to be notified when someone replies or adds a new comment?
Yes (All Threads)
Yes (This Thread Only)
No
iClarified Icon
Notifications
Would you like to be notified when we post a new Apple news article or tutorial?
Yes
No
Comments (3)
You must login or register to add a comment...
Rodel
Rodel - March 13, 2012 at 5:10am
My question is: dulown't it be best to have the local machine (windows, or?) save the dns entries for much longer? Maybe a week? It sounds like they are lost from the dns resolver when the machine is shut down, or when the ttl expires. Of course, you could enter them manually into the Hosts file, but if windows could save them for maybe a week in the dns resolver, and you mostly go to the same sites, that would be faster, right? How often to websites change their IP address?
Anupam
Anupam - May 30, 2011 at 4:45am
What is the advantage of clearing the DNS from the computer... is it beneficial in any way?
example
example - August 15, 2011 at 10:00pm
sometimes sites can redirect to others and you can fix that by clearing the dns
Recent. Read the latest Apple News.
RECENT
Tutorials. Help is here.
TUTORIALS
Where to Download macOS Ventura
Where to Download macOS Sequoia
AppleTV Firmware Download Locations
Where To Download iPad Firmware Files From
Where To Download iPhone Firmware Files From
Deals. Save on Apple devices and accessories.
DEALS