Tuesday, June 5, 2012

How To Clear DNS Cache In Mac OSX Leopard

SkyHi @ Tuesday, June 05, 2012

 flushdns leopard How to Clear DNS Cache in Mac OSX Leopard
DNS request are usually cached, that’s good as it help to speeds up the lookups within the samehost but sometimes we will want to clear the cache so it don’t hold the values that are no longer valid. To clear DNS cache in Mac OSX, we can do it with the help of Terminal.

Mac OSX 10.4 And Below

  1. lookupd -flushcache  

Mac OSX 10.5 And Above

However a Mac OSX 10.5 Leopard user will tell you this command will no longer work. In Mac OSX Leopard a new command has been used to replace flushcache. To clear DNS cache in Leopard, use the following command:
  1. dscacheutil -flushcache  




REFERENCES
http://www.hongkiat.com/blog/how-to-clear-dns-cache-in-mac-osx-leopard/