If you’re having trouble browsing the web in Windows Vista, you may want to reload the DNS client cache. This article will show you how to do this in Windows Vista. First, open the Start menu and type “cmd” (without the quotes). Then type “netstat -an” to see what’s going on with your DNS client cache. If everything is normal, then you don’t need to reload the cache. However, if there are any problems with your DNS client cache, then you may need to do so. If everything is normal, then your DNS client cache should be empty. However, if there are any problems with your DNS client cache, then it may be full or it may have been corrupted. To check whether your DNS client cache is full or corrupted, type “netstat -p” and see what’s returned. If there are any problems with your DNS clientcache, then it might be necessary to delete some of its files and start again from scratch.
You can tackle this problem two ways, first by just clearing the cache, but also by restarting the DNS client service, which handles caching of DNS lookups.
UPDATE: We have a newer version of this article available, that has been updated for Windows 10, 8, and 7.
Clear DNS Cache
Open up an administrator mode command prompt by right-clicking on the Command Prompt in the start menu and choosing “Run as Administrator”
Now type in the following command:
This usually clears up any issues that might be occurring. Note that if you are using Firefox you should probably also close and reopen, because Firefox has a DNS cache as well.
Restart DNS Service from Command Line
Open up an administrator mode command prompt as above, and then type in the following commands:
I usually use the command prompt for this, since I already have it open for the previous step.
Restart DNS Service from Services
Open up Services in the control panel, or by just typing services into the Start menu search box. Once there, find the “DNS Client” service and click the Restart Service button.
By this point I’d hope that things are working again. Note that these instructions should also work for XP.
Update: Reader Fred wrote in to mention that you can also use the “Repair” option in XP or Vista. Just go to the network connections list in control panel, find the adapter and choose Repair for XP or Diagnose for Vista.