Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

The command ipconfig /flushdns does not clear all entries. Check using ipconfig /displaydns on your side. Here I still have some entries I can’t clear.

Does someone know how to erase all? Thanks.

share|improve this question

migrated from serverfault.com Jan 15 '13 at 16:01

This question came from our site for professional system and network administrators.

6  
What entries? I don't have that issue when running ipconfig/flushdns. If you have entries in your hosts file those entries will be reloaded when you flush the DNS cache. –  joeqwerty Jan 15 '13 at 13:09
    
Can you confiirm you are not seeing HOSTS file entries as suggested by @joeqwerty –  Dave M Jan 15 '13 at 17:40
    
Also, if any software is actively using the internet the entries may be repopulated pretty much instantly after they are deleted. You could try putting everything on one line to minimize the delay: ipconfig /flushdns & ipconfig /displaydns –  Harry Johnston Jan 17 '13 at 3:30

3 Answers 3

Use the following command in an elevated command prompt:

net stop dnscache 


net stop dnscache
The DNS Client service is stopping.
The DNS Client service was stopped successfully.


ipconfig /displaydns

Windows IP Configuration

Could not display the DNS Resolver Cache.
share|improve this answer
3  
Don't forget to start the dnscache service again by issuing net start dnscache –  Idan Jan 15 '13 at 12:48
    
Already done and it doesn’t clear the entries. –  Sven Jan 15 '13 at 13:19
    
@Sven: I provided a demo. –  Greg Askew Jan 15 '13 at 13:35
    
Where is it Greg? –  Sven Jan 15 '13 at 13:56
    
If the service has been stopped the command ipconfig /displaydns won’t be able to start. And if you restart it you will see again the entries. –  Sven Jan 15 '13 at 13:58

Your DNS cache is also automatically populated with whatever is hardcoded into your local hosts file. An ipconfig/flushdns will not remove those entries. In order to verify that your hosts file doesn't have some of these static host name to IP addresses navigate to your &windir&\System32\Drivers\etc\ folder and open the hosts file in Notepad or Wordpad. Ensure that there are no entries or that you comment the entries out with a "#" sign at the beginning of the line.

share|improve this answer

Look for the program "Portable DNS Cache" (http://www.verigio.com). It displays DNS cache in real-time, allows to clear the whole cache or delete a specific entry, and allows to save/load the DNS cache to/from a file.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.