How to clear DNS cache in Mac OS X Leopard

ADVERTISEMENT

DNS request are usually cached to speed up the lookups within the same host. If you need to clear that DNS cache for some reason, here are the simple Terminal shortcuts for it.

Clear DNS cache in Mac OS X Tiger and below

Clearing the DNS cache is as easy as entering the command below into a Terminal and hitting enter.

lookupd -flushcache

Clear DNS cache in Mac OS X Leopard

In Mac OSX 10.5 Leopard, the above command will not work. This is because a different command replaces flushcache. To clear DNS cache in OS X Leopard, enter the command below into a Terminal and hit enter.

ADVERTISEMENT

dscacheutil -flushcache

What is DNS?

The Domain Name System (DNS) is a naming system for computers, and anything else on the Internet. When you type a website’s name into your browser addressbar, the DNS gives you the IP co-ordinates to find the server.

To get our latest articles, click here to sign up for our free email newsletter or subscribe to RSS feed

§ Leave a Reply