Tuesday, June 29, 2010

Clear your local DNS cache

Sometimes when you repair your local area connection from the local area connection status window, you find out that your DNS cache could not be cleared and whatever you do, the cache will not clear up. So here’s the cool way of doing it..


Open your command prompt and type the following command:

C:\>net stop dnscache

If it says that the dnscache is not started then type the following command:

C:\>net start dnscache

It will start your local dns cache. Now try flushing your dns cache by issuing the following command:

C:\>ipconfig /flushdns

It will most probably clear your dns cache and display the results for you.

If you want to see what is in your local dns cache at this time, issue this command to find out:

C:\>ipconfig /displaydns



This can also be done as:



Go to run and type services.msc

select DNS Client, select automatic from drop down menu and start the service.

1 comment:

  1. Good documentation, thanks for the steps to clear the DNS cache !!

    ReplyDelete