Vista DNS Cache: Flush, Clear, or Reset

Contributor Icon Contributed by Hack_Vista Date Icon August 27, 2006  
Tag Icon Tagged: Microsoft Vista

Frequently web connection problems can be traced to a corrupted DNS cache. Flushing this cache is an easy fix to many of these problems. This is how to flush the cache in Vista.


Here is how to fix that corrupted DNS cache in vista.

1. Click the Microsoft Vista Start logo in the bottom left corner of the screen
2. Click All Programs
3. Click Accessories
4. RIGHT-click on Command Prompt
5. Select Run As Administrator
6. In the command window type the following and then hit enter: ipconfig /flushdns
7. You will see the following confirmation:

Windows IP Configuration
Successfully flushed the DNS Resolver Cache.

Previous recipe | Next recipe |
 
  • Jimbo
    Thanks for the helpful tip :) I wasn't sure if was the same as XP or not but it looks like it is.
  • thanks :-)
  • erik
    thank you for the help. Did not know about this. It did the trick though.
  • jason
    i need elevation to complete
  • c
    did not work it say requested operation requires elevation
  • Freaked
    you are not running as administrator if you are getting "requested operation requires elevation". RUN IT AS ADMINISTRATOR as this guide recommends.
  • KurodaShun
    My account was "Admin" type...
    but when i tried flush dns,
    the "Requested operation requires elevation" message still came out!!!
  • fireswordy
    right click it then click run as admistrator....( i think thats what you name your computer/user...)
  • Pippin
    I experienced internet connection problems. While Skype and pinging ip numbers worked (even connecting to ip addresses in the web browser worked) just addresses like www.google.com often did not work.

    After a lot of fiddling I found that disabling NetBIOS via TCP/IP helps. Go to the Network Center, Network Connections, properties of the connection (wireless or LAN, whatever you use for this connection). Then properties of the IPv4 protocol, Advanced, WINS tab. Select Disable NetBIOS via TCP/IP. For good measure I also enabled Use DNS suffix of this connection in the DNS registration (DNS tab). The latter I also did for the IPv6 protocol. In my experience the NetBIOS setting did the trick for me.

    Maybe this helps some of you.
  • brian
    why does mine say "requires elevation"?
  • Roy
    Click on Vista start menu logo and start typing cmd. when you see it, right click and say "run as administrator" and verify by selecting okay and then type configuration.
  • James
    I'm not some newbie. A+ certified. I'm starting to think half of my problems are some kind of HP specific BS settings. Nothing I run at the command line works normally on this computer. I use my (NON-HP) VISTA laptop and my results vary. I can't even get Python to run correctly. DNS flush gave me all kinds of errors. Double checked my typing. Never buy another HP again. I'm building my next rig just like I did all of my previous rigs.
  • Evolex
    it writes: function execution error
  • fantastic ! some old dos stuff will never go away ..
  • mary
    i switches from verizon to comcast now on the pc which is an ibm older model the ip address is zeros i connect and work fine on my laptop with the comcast modem etc so any ideas i did ipconfig renew etc still zeros all the connectoons are fine it was foine on verizon the comcAST AND NO IP ADRESS WELL YAH BUT ZEROS??? ANY HELP APRECIATTED
  • wayne
    do you have a router conected if so reset the modem and the router and try to plug them back and see if that works if not pulg the modem and the,pc no router in between and check your ip if that dont wrork do and inetwiz if that dont work do a flushdns as check ur ip address. if you are a homenetworking comcast customer you need to call them and ask them for an static ip. I hope that by fallowing this steps you get what you need. Later
  • Dakota
    I flushed it out for Itunes and it didn't work. I did everything sucessfully, and it still says that the internet couldn't connect with the store and that I need to check my settings. I don't understand!! I have done absolutely everything that there is to do. Please Help!!!!!
  • hege
    I tried this but got the message :"could not flush the DNS Resolver Cache: Function failed during execution"
  • I am having issues connecting to Server 2003 with Vista Ultimate. I keep getting the error :
    "An attempt to resolve the DNS name of a DC in the domain being joined has failed. Please verify this client is configured to reach a DNS server that can resolve DNS names in the target domain." Any help would be greatly appreciated
  • concerned guru
    thx this worked great
  • steph
    thanks a lot i worked with the XP one but didn't know how to work the vista cmd.

    p.s. the computer newbs are great to laugh at.
  • Kali
    The only difference between a "newb" and you is experience with a pc, Steph. Oh wait... you didn't know how to work the Vista cmd.....
  • Munyi
    What if the message you get is "could not flush dns resolver Cache: Function failed during execution"
  • Jen
    Fantastic Fix! Thank you soooo much!!!
  • squid16DZ
    Great Help, Tx!
  • Thanks :-)

    From A Very Long Time I Am Searching For This
  • eric
    This does not work. I ran the command and got the confirmation message, but when I type : ipconfig /displaydns it still shows that everything is in the cache and nothing has been removed.
  • Mark Bunds
    My Vista installation corrupts the DNS cache so frequently that I wrote a batch file and placed on my desktop.
  • erichauch
    I found that a DOUBLE ipconfig /flushdns seemed to do the trick (and it doesn't waste cyber-water) to resolve the Vista DNS problem.
  • CKliger
    This didn't work in my case. Tried several times, but never got response in DOS window or any change whatsoever. Funny thing...the "instructions" for how to fix this on the Microsoft website pretty much say you need to reset the dns functions, and that the "error" message MUST be the result of the dns processor being "not on automatic" and yet when you look at the system functions it IS what it says it should NOT be.

    Frustrating
  • ashlee92
    yeah i did that and now when i have to do a system restore to even use my internet exploerer,so i can't shut off my computer at all or i'll have to do a system restore
  • steve
    ipconfig /flushdns doesn't always work under all circumstances with Vista, unfortunately. sometimes you need to do a restart of the cache: net stop dnscache, net start dnscache (or use the services snapin to restart DNS Client)
  • namefertdzsdfg
    Hi,

    I just wanted to share this information so that it may help others who have a had my issue.If you have tried the various other fixes and vista is still not working then please try disabling your IP Flood Detection in the router. This did the job for me.
blog comments powered by Disqus