Thursday, 1 May 2014

Clear Cache

Operating System    To get to the Command Prompt/Terminal    Command to use to clear DNS Cache at the Command Prompt/Terminal
         
Windows   Go to Start Menu > Run > Type "cmd" > press Enter/Return  
ipconfig /flushdns
dnscmd  /clearcache     (server)

         
Mac OSX 10.4 (Tiger)   Click the Terminal icon in the dock or in Finder (in /Applications/Utilities/)  
lookupd -flushcache

         
Mac OSX 10.5 & 10.6 (Leopards)   Click the Terminal icon in the dock or in Finder (in /Applications/Utilities/)  
dscacheutil -flushcache
         
Mac OSX 10.7 & 10.8 (Lions)   Click the Terminal icon in the dock or in Finder (in /Applications/Utilities/)  
sudo killall -HUP mDNSResponder

         
Mac OSX 10.9  (Mavericks)   Click the Terminal icon in the dock or in Finder (in /Applications/Utilities/)   dscacheutil -flushcache;sudo killall -HUP mDNSResponder

         
Linux (most distributions)   Open a terminal window
(gnome-terminal, konsole, xterm, etc.)
 
sudo /etc/init.d/nscd restart
or
sudo /etc/init.d/networking restart 

No comments:

Post a Comment