Knowledgebase
How to clear local DNS cache
Posted by Level 3 Support on 12 March 2014 02:39 PM

Windows Vista/Windows 7:
Click on Start, followed by All Programs, and then Accessories. Right-click on Command Prompt and choose Run as Administrator.
In the Command Prompt window type in the following command and press Enter:
   ipconfig /flushdns


Windows XP:
Click on Start, followed by All Programs, and then Accessories. Click on Command Prompt. In the Command Prompt window type in the following command:
   ipconfig /flushdns

Mac OS X 10.5.2 and above:
Click on the Finder icon in your dock. Open your Applications folder. Inside the Applications folder, click on Utilities and then Terminal.
Type the following command in the Terminal window and press Enter:
   dscacheutil -flushcache


Linux:
Many current Linux distributions do not utilize a local DNS resolver cache like Windows and Mac OS X. If you do not know if your Linux installation is utilizing local DNS caching please see the website for your Linux distribution and look for information regarding default included software.
One of the most commonly used DNS caching Linux applications is NSCD (Name Service Cachine Daemon).
If you have NSCD installed you can clear the local DNS cache by running one of the following commands in your favorite terminal/shell application:

Clear local DNS cache for current user:
  nscd -i hosts
Clear local DNS cache for all users:
  nscd -I hosts

(3 vote(s))
Helpful
Not helpful