My Quotes


When U were born , you cried and the world rejoiced
Live U'r life in such a way that when you go
THE WORLD SHOULD CRY






Wednesday, April 11, 2012

Clear DNS cache in various OS


To flush DNS cache in Microsoft Windows (Win XP, Win ME, Win 2000):-

  1. Start -> Run -> type cmd
  2. in command prompt, type ipconfig /flushdns
  3. Done! You Window DNS cache has just been flush.


To flush the DNS cache in Linux, restart the nscd daemon:-


  1. To restart the nscd daemon, type /etc/rc.d/init.d/nscd restart in your terminal
  2. Once you run the command your linux DNS cache will flush.


To flush the DNS cache in Mac OS X Leopard:-

  1. type lookupd -flushcache in your terminal to flush the DNS resolver cache.
  2. ex: bash-2.05a$ lookupd -flushcache
  3. Once you run the command your DNS cache (in Mac OS X) will flush.


To flush the DNS cache in Mac OS X:-
  1. type dscacheutil -flushcache in your terminal to flush the DNS resolver cache.
  2. ex: bash-2.05a$ dscacheutil -flushcache
  3. Once you run the command your DNS cache (in Mac OS X Leopard) will flush.


To flush the DNS cache in Solaris:-
Do a
-          # ps -ef | grep nscd
This will find the PID for the NSCD daemon.
Now, do a
-          #pkill <PID>
or
-          #kill <PID>
Now, check if the nscd process is killed by using
-          # ps -ef | grep nscd
Now, start the nscd daemon by using
-          #/usr/sbin/nscd
This should start the nscd daemon and there you go, you have flushed the DNS Cache in your Solaris Server

No comments :