The Broadband Guide
SG
search advanced
 search
FAQs Categories:

How to flush the DNS Cache in Windows 7 / Vista ?

Tags:
DNS cache store stores name resolution information of websites you visit, network shares, application servers, etc. This will also fix corrupted DNS cache in Windows 7/Vista. First, you need to start the "elevated" command prompt:

Click the Windows Start button > All Programs > Accessories
RIGHT-CLICK Command Prompt, select "Run As Administrator"
In the command window type the following command and hit Enter:
ipconfig /flushdns

The following message indicates success:
Windows IP Configuration
Successfully flushed the DNS Resolver Cache.


If flushing DNS cache does not fix corrupt or bad DNS issue, you can stop/disable the DNS cache client service to turn off DNS caching. To temporarily disable DNS caching, use the following commands in elevated command prompt:
net stop dnscache
net start dnscache

Notes: If you don't flush the DNS cache in elevated command prompt (administrator priviledges), you will get an error: "The requested operation requires elevation."
The "ipconfig /flushdns" command works under Windows XP/2k3 as well.
You can also disable DNS caching by stopping the DNS client service: Navigate to Start > Run, type "Services.msc", find the DNS client service and stop it.


  User Reviews/Comments:
    rate:
   avg:
by Harry - 2012-01-05 10:29
This "trick" will also correct Vista not pulling an ip address from the DHCP server based upon the system hardware address. Hopefully, the power of Google will spread this.
by anonymous - 2012-05-29 08:03
This worked for me
by anonymous - 2012-07-03 03:50
Works!!
by anonymous - 2012-11-04 22:41
it works thanks
by anonymous - 2013-04-05 12:12
thanks worked 4 me
by chicagoboyrn - 2013-04-30 04:32
Thanks so much! truly appreciate your help.
by anonymous - 2013-06-07 15:48
you are a legend this has done my head in , and then here was your forum which saved the day lol
by anonymous - 2013-06-09 18:01
WORKS!!
by anonymous - 2013-09-13 07:49
AWESOME. WORKED FOR ME!!!!!!
by anonymous - 2013-11-18 05:21
There were changes made company wide to various ip addresses of various application servers and network share drives. Post the weekend of the IP address changes, I was unable to access the network drive and then came across this post via google. IT WORKED LIKE A CHARM FOR ME. I can now successfully access all my previous resources.
by amit g - 2013-11-24 14:42
Thanks a lot... great heavens.....

you have provided a vital clue in the whole scenario of internet connectivity problems to certain programs/sites..... this is an issue that must have befuddled many a user but your tip of disabling DNS cache did the trick... God bless you !
by anonymous - 2013-12-17 00:31
this works! thanks a lot!
by anonymous - 2016-10-28 11:56
great works with win 7
News Glossary of Terms FAQs Polls Cool Links SpeedGuide Teams SG Premium Services SG Gear Store
Registry Tweaks Broadband Tools Downloads/Patches Broadband Hardware SG Ports Database Security Default Passwords User Stories
Broadband Routers Wireless Firewalls / VPNs Software Hardware User Reviews
Broadband Security Editorials General User Articles Quick Reference
Broadband Forums General Discussions
Advertising Awards Link to us Server Statistics Helping SG About