星期二, 5月 26, 2009

Flush Dns Cache - Linux, Windows, MAC

原文:http://chiahu.com/blog/?p=357



Flush Dns Cache - Linux, Windows, MAC (clear dns negative entry) Posted on 九月 30th, 2008 佳湖 No comments

Flush DNS cache for Microsoft Windows



To do this simply enter: ipconfig /flushdns in a command prompt.



* Start -> Run -> type cmd

* type ipconfig /flushdns (in command prompt)

* DONE. DNS Cahe has just been flush.



This should work on Windows XP, Windows 2000, and possibly other versions of Windows.

Flush DNS cache for LINUX



In linux if you want to flush DNS cache you need to restart nscd daemon



* type /etc/rc.d/init.d/nscd restart in your terminal

* or sudo /etc/init.d/nscd restart

* Once you run the command your linux DNS cache will flush.



Flush DNS Cache on MAC OS X



Mac OS X - Clearing / flushing the DNS Cache:



* For Leopard, type in your terminal: sudo dscacheutil -flushcache * For Tiger, type in your terminal: lookupd -flushcache



Once you run the command your DNS cache (in Mac OS) will flush.

沒有留言: