To display the DNS Cache,
1. Click Start and RUN
2. Type CMD and press Enter or click OK
3. This should take one to the DOS command window
4. Type IPCONFIG/DISPLAYDNS and press Enter.
This will Display the entries in the DNS Cache at that time as in the following screen shot.
To copy the contents of the DNS Cache onto a Text file,
1. Click Start and RUN
2. Type CMD and press Enter or click OK
3. This should take one to the DOS command window
4. Type IPCONFIG/DISPLAYDNS > FILE.TXT and press Enter.
Example:
ipconfig/displaydns > c:\dnscache.txt
Now, open the Text file from an editor like notepad and you should be able to see the DNS Cache entries copied to the text file.
To clear or Flush the DNS Cache,
1. Click Start and RUN
2. Type CMD and press Enter or click OK
3. This should take one to the DOS command window
4. Type IPCONFIG/FLUSHDNS and press Enter.
This will clear the DNS Cache and return a message as in the following screenshot.
If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!
thanks for valuable suggestion but how can i flush the DNS as a permanent basis.
Hi Vikas
“flush the DNS as a permanent basis” – this doesn’t make much sense. The cache is a record of recently-looked-up addresses. Emptying a cup isn’t the best way to keep it empty. Rather stop filling it! If you don’t want it to keep records at all then you can just disable the service entirely.
To do that, follow the instructions at http://support.microsoft.com/kb/919746 except that, instead of a “Startup Type” of Automatic, set it to Disabled or Manual.