Categories General System Software Notes Flush DNS Cache Post author By Chris Janton Post date August 1, 2005 8 Comments on Flush DNS Cache Flush DNS Cache: Looking for a way to flush your DNS cache? It’s as easy as: Leopard – sudo dscacheutil -flushcache Tiger – sudo lookupd -flushcache Windows – ipconfig /flushdns Further info here – Forcing an IP Address Share this:EmailTwitterFacebook Tags MacOSXw ← HP OpenVMS Transition Modules → Auditing and Risk Management: Eight Questions to Ask the Chief Auditing Executive 8 replies on “Flush DNS Cache” This does not work with Mac OS Tiger. Yes, it does. The first command is for tiger. The second one is for Win 2k/XP/2k3. The first command flushes only the cache maintained by lookupd. DNS entries may be cached elsewhere. If they “may be cached elsewhere” would you care to share where that might be? and if cached elsewhere how does one clear it? Use this command in Leopard: sudo dscacheutil -flushcache Forcing an IP Address… In the “real” world you simply add an entry to /etc/hosts like 22.214.171.124 myhost The Mac OS X world is different. For version 10.5 and later you do the following # Create the mapping sudo dscl localhost -create /Local/Default/Hosts/x.y.z IP… […] Flush DNS Cache […] Thank you! It worked for my tiger machine.