Blog by an Apple Certified Tech


How to clear DNS from Mac OS X

Every time when you open a web page its DNS gets stored in cache of the computer. If you want to know what is DNS, read this topic to clear the concept. When these DNS cache become old, in some of the cases they start creating problem. The idea is to delete DNS cache saved in the system.

The command has to typed in Terminal, for Leopard it has to be:

dscacheutil -flushcache

If you still have Tiger running on your Mac, then type the following:

lookupd -flushcache

After running this command, cache will be clear and it may take a bit longer to open web pages. It is not recommended to constantly flush your cache, once a month or once every two months would be good enough.