How to flush your local DNS Cache

The computer has trouble reaching a certain web site or server this may be due to a corrupt local DNS cache.

 

Windows vista/windows 7:-

  1. Click on start.followed by All Programs,and then Accessories.
  2. 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

If all goes well,which it should,you will see the following confirmation message.

Successfully flushed the DNS Resolver Cache.

 

Windows XP:-

  1. Click on start.followed by All Programs,and then Accessories.
  2. Right Click on Command Prompt and choose Run as Administrator.

In the command prompt window type in the following command and pres enter

ipconfig /flushdns

If all goes well,which it should,you will see the following confirmation message.

Successfully flushed the DNS Resolver Cache.

 

Mac OS X 10.5.2 and above:

  1. Click ont he Finder icon in your dock.Open your application folder.
  2. Inside the Applications folder,click on Utilities and then Terminal.

Type the following command in the terminal window and press Enter:-

dscacheutil -flushcache

Do not be alarmed if you do not receive any kind of response from the Terminal window after running the command. This is normal.

Mac OS X 10.5.1 and above:

  1. Click on the Finder icon in your dock.Open your application folder.
  2. Inside the Applications folder,click on Utilities and then Terminal.

Type the following command in the terminal window and press Enter:-

lookupd -flushcache

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:-

    nscd -i hosts

– [Clear local DNS cache for current user.]

    nscd -I hosts

– [Clear local DNS cache for all users.]

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *