DNS Cache Flush, Clear, or Reset in Vista, Windows 7, and Windows 8.

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, Windows 7, and Windows 8.


Here is how to fix that corrupted DNS cache.

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.

The Conversation

Follow the reactions below and share your own thoughts.

101 Responses to “DNS Cache Flush, Clear, or Reset in Vista, Windows 7, and Windows 8.”

  1. November 28, 2008 at 5:43 pm, Jimbo said:

    Thanks for the helpful tip :) I wasn’t sure if was the same as XP or not but it looks like it is.

    Reply

    • June 07, 2012 at 3:45 am, Donna said:

      > I followed those instructions & I STILL have the problem! Did ‘someone’ leave out some ‘other’ important instructions? I’ve never done anything like this before . . . . I know NOTHING about how to fix things on the computer, so those instructions seemed incomplete to me. It doesn’t say anything after you get to : #7
      7. You will see the following confirmation:

      Windows IP Configuration Successfully flushed the DNS Resolver Cache.

      Well, I saw that ‘message’,so what was the NEXT step? I still had the problem . . . the DNS flush didn’t work! Why can’t someone give the FULL step by step instructions. We’re not all computer literate here.
      I need instructions for ‘DUMMIES’

      Reply

      • July 16, 2012 at 12:20 am, Dagerlay said:

        > well if u are on window’s 7 try typing this in start %temp% wen it opens delete all file’s in it it will not let u delete any thing u need. and clear out your recycle bin after you are done. windows vista and xp u can do %temp% and just temp and clear them out then recycle ben that will help with net speed as well

        Reply

      • March 15, 2013 at 2:12 am, stuntslider said:

        >hi im using windows 7 tried : ipconfig /flushdns and it did nothing just opened another line so what now?

        Reply

      • January 30, 2014 at 10:32 pm, Jon said:

        Flushing the cache will almost never help with internet browsers poor connectivity. This is always the first thing everyone suggests – almost never works.

        Reply

      • March 20, 2014 at 10:04 am, Mizah said:

        Thanks for the helpful tip :) I wasn’t sure if was the same as XP or not but it looks like it is.

        Reply

  2. December 08, 2008 at 6:50 am, adis said:

    thanks :-)

    Reply

  3. December 21, 2008 at 5:56 pm, erik said:

    thank you for the help. Did not know about this. It did the trick though.

    Reply

  4. January 08, 2009 at 2:59 am, jason said:

    i need elevation to complete

    Reply

  5. January 09, 2009 at 5:47 pm, c said:

    did not work it say requested operation requires elevation

    Reply

    • January 10, 2009 at 1:09 am, Freaked said:

      you are not running as administrator if you are getting “requested operation requires elevation”. RUN IT AS ADMINISTRATOR as this guide recommends.

      Reply

      • February 06, 2009 at 1:08 pm, KurodaShun said:

        My account was “Admin” type…
        but when i tried flush dns,
        the “Requested operation requires elevation” message still came out!!!

        Reply

        • December 08, 2009 at 11:29 pm, Anonymous said:

          right click it then click run as admistrator….( i think thats what you name your computer/user…)

          Reply

          • May 28, 2013 at 8:21 am, Miss Understood said:

            > right click WHAT? Me too, I am on admin and it’s still needs Elevation.

          • May 28, 2013 at 8:25 am, Miss Understood said:

            > Forget it found out. Go to Start Menu, right click the Command Prompt to Run as Admin…that’s the missing part that worked for me. Discard my previous question.

  6. January 21, 2009 at 11:55 pm, Pippin said:

    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 http://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.

    Reply

    • June 28, 2012 at 4:22 pm, Joe said:

      Pippin,
      Your advice rocks !!
      Thanks !!
      =)

      Reply

  7. January 30, 2009 at 5:54 pm, brian said:

    why does mine say “requires elevation”?

    Reply

    • February 04, 2009 at 11:00 pm, Roy said:

      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.

      Reply

      • February 15, 2009 at 11:42 am, James said:

        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.

        Reply

      • March 24, 2011 at 4:55 pm, Blake said:

        Thank you so much. I have been searching online for a solution. You’re the man!

        Reply

  8. March 09, 2009 at 12:27 am, Evolex said:

    it writes: function execution error

    Reply

  9. March 17, 2009 at 11:57 am, mtsen.com said:

    fantastic ! some old dos stuff will never go away ..

    Reply

  10. March 22, 2009 at 9:49 pm, mary said:

    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

    Reply

    • March 25, 2009 at 3:22 am, wayne said:

      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

      Reply

  11. April 04, 2009 at 10:14 pm, Dakota said:

    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!!!!!

    Reply

    • March 09, 2010 at 8:00 am, Anonymous said:

      hi try ipconfig /flushdns press enter then put in (net stop dnscache) wait for that to stop then put in (net start dnscache) press enter see if that works for you

      Reply

      • September 15, 2010 at 3:04 pm, Trish said:

        OMG! your a genius! Hugz for huggy! Thanks.

        Reply

      • June 04, 2012 at 4:29 am, Jorge said:

        Omg this worked ty very much. I just had ti restart computer for it to kick in.>

        Reply

  12. May 19, 2009 at 8:43 am, hege said:

    I tried this but got the message :”could not flush the DNS Resolver Cache: Function failed during execution”

    Reply

    • November 04, 2010 at 2:16 am, newbie said:

      http://support.microsoft.com/kb/919746
      These instructions solved my problems…because the DNS client service was not set up to run at start up and it wasn’t enabled.

      Reply

  13. May 29, 2009 at 6:23 pm, Ryan said:

    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

    Reply

  14. June 07, 2009 at 3:22 am, concerned guru said:

    thx this worked great

    Reply

  15. June 19, 2009 at 3:03 am, steph said:

    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.

    Reply

    • July 06, 2009 at 10:09 pm, Kali said:

      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…..

      Reply

  16. June 23, 2009 at 1:24 pm, Munyi said:

    What if the message you get is “could not flush dns resolver Cache: Function failed during execution”

    Reply

  17. July 09, 2009 at 5:25 am, Jen said:

    Fantastic Fix! Thank you soooo much!!!

    Reply

  18. July 14, 2009 at 3:00 am, Anonymous said:

    Great Help, Tx!

    Reply

  19. September 27, 2009 at 11:27 pm, Aryan Mughal said:

    Thanks :-)

    From A Very Long Time I Am Searching For This

    Reply

  20. November 04, 2009 at 8:04 am, eric said:

    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.

    Reply

  21. November 15, 2009 at 5:12 pm, Mark Bunds said:

    My Vista installation corrupts the DNS cache so frequently that I wrote a batch file and placed on my desktop.

    Reply

    • November 28, 2009 at 1:40 pm, Anonymous said:

      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.

      Reply

  22. December 01, 2009 at 5:24 am, Anonymous said:

    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

    Reply

  23. December 15, 2009 at 11:02 am, Anonymous said:

    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

    Reply

  24. December 31, 2009 at 4:01 pm, steve said:

    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)

    Reply

  25. January 10, 2010 at 10:36 pm, Anonymous said:

    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.

    Reply

  26. May 02, 2010 at 5:45 pm, Anonymous said:

    Hi, I’ve been on the phone with mu ISP over some trouble with my DNS. We tried alot of different things including:

    ipconfig /release
    ipconfig /renew
    ipconfig /flushdns

    unfortunatly nothing has worked.
    The problem is that my DNS isn’t reading hosts but only IP adresses. I’m really stuck and about to smash my Acer off the ground : )

    Any help would be great

    -Cillían

    Reply

    • May 12, 2011 at 11:16 am, JOSH said:

      DID you ever resolve this

      Reply

  27. May 08, 2010 at 3:43 am, Anonymous said:

    yours is the first that worked! bravo!

    Reply

  28. May 20, 2010 at 5:17 pm, Luisa said:

    I am having trouble with logins. I have the correct login info and it doesnt prompt me that I have incorrect user or password however it will keep asking me for login info.

    Reply

  29. May 31, 2010 at 5:08 pm, Brian Pace said:

    Thanks, worked great. This, indeed, was the problem.

    Reply

  30. June 07, 2010 at 3:32 pm, HB said:

    very helpful tip
    i was looking this….

    Reply

  31. July 24, 2010 at 4:38 pm, Anime said:

    Ah, awesome. I tried doing it without running as Administrator, but it kept giving errors. Who’d have known the fix was so simple? lol

    Reply

  32. July 25, 2010 at 2:25 am, Matt said:

    should there be something in the command window already?
    I dont want to add something and screw up vista any more than it already is.
    I have no idea when it comes to working with dos,dag,dog,or whatever other abbreviations there are.

    Reply

  33. July 26, 2010 at 2:19 pm, takizo said:

    You can type another command “registerdns” after flush, it will do query to the DNS server again.

    Reply

    • August 04, 2010 at 10:21 pm, Radutwitter said:

      I have a lot of weird websites that I see when doing : ipconfig/displaydns. Sites that currently are redirecting some of my requests to them. What a hell should I do to erase those ?

      Reply

  34. August 04, 2010 at 1:39 pm, Alice said:

    I have a 2008 Dell Inspiron running windows vista and i tried SOOOO many things to make it work and this ended up being the deal breaker. Thanks for the info!

    Reply

  35. August 09, 2010 at 11:20 am, Dmiretti said:

    Thanks for the tip! Worked like a charm. Didn’t realize that quirk about Vista..just another reason why Vista is like a lump of coal in the proverbial stocking.

    Reply

  36. August 26, 2010 at 10:39 am, Falken751 said:

    worked perfectly.

    Reply

  37. September 23, 2010 at 9:08 pm, Shanenagg said:

    thanks this worked 4 me

    Reply

  38. October 11, 2010 at 6:22 pm, Seo said:

    thanks. but does not work

    Reply

  39. January 10, 2011 at 4:03 am, BrandonL said:

    Hello. I have completed the flushdns and went back to displaydns and it shows all the cache that was there originally. I tried doing it twice in a row and it still comes up. I also did a restart of the cache: net stop dnscache, net start dnscache. What are my next options? Thanks!!!

    Reply

  40. March 12, 2011 at 4:44 pm, Kdouat said:

    That’s what I just did. Now, I am waiting…. Thanks for the validation!

    Reply

  41. November 20, 2011 at 7:15 am, Dave said:

    I try to do this but can’t. When I click Acessories to expand it, the start menu I have open closes before I try to click anything in the accessories. Also every 2 seconds the screen is sort of refreshing or changing focus to another program or something because the title bar is flashing in and out of focus.

    Reply

  42. December 13, 2011 at 11:21 am, online alışveriş said:

    thanks for share.very nice post

    Reply

  43. December 13, 2011 at 6:47 pm, araç takip said:

    hi try ipconfig /flushdns press enter then put in (net stop dnscache) wait for that to stop then put in (net start dnscache) press enter see if that works for you

    Reply

  44. December 25, 2011 at 9:19 pm, Best Blogging Tips said:

    thanks for this useful information I was looking for it

    Reply

  45. January 04, 2012 at 3:42 pm, brian said:

    I have a reseller hosting site, to login to the cpanel I was always promted with: – SSL encryption is required for access to this server, I could login using this. But now when I trying to login using this I got connection to this server was interupted, now I just get can not connect. I have the flushdns and several of the remidies on this page but unable to resolve. Any suggestions would be mutch apprechated.

    thanks
    Brian

    Reply

  46. February 07, 2012 at 12:22 am, John Lectroman said:

    I tried over and over again to flush my dns cache. Nothing suggestede here works on my Vista PC….HP. The dialogs always say it was successful but when I display it shows the same entries as before. I stopped the service and restarted but to no avail…nada. There has to be a way to get rid of these websites. My 16 YO nephew was here for a week and went to several porn sites…I want them off my PC. Someone must have a viable solution. HELP

    Reply

  47. March 03, 2012 at 3:52 pm, Moulinex Fresh said:

    thanks. but does not work

    Reply

  48. March 03, 2012 at 4:22 pm, Moulinex Fresh said:

    I have a reseller hosting site, to login to the cpanel I was always promted with: – SSL encryption is required for access to this server, I could login using this. But now when I trying to login using this I got connection to this server was interupted, now I just get can not connect.

    Reply

  49. March 17, 2012 at 9:40 pm, Muhammad said:

    slow internet on my sony vio was resolved in seconds. many thanks.

    Reply

  50. April 03, 2012 at 2:09 pm, Ian Brownlee said:

    well done defineately worked for me wuldnt have thought netbios over tcp/ip would have been the issue but there you go

    Reply

  51. April 16, 2012 at 10:27 am, xxxwatch said:

    thank you for the help. Did not know about this. It did the trick though.

    Reply

  52. April 30, 2012 at 1:12 pm, walaa said:

    thanks alot…

    Reply

  53. May 06, 2012 at 8:17 pm, steve f said:

    Thanks a lot HV I’ve been experiencing all sorts of crap this week with DNS issues; I don’t know if this has fixed it indefinitely, but it’s definately made a difference so far – nice one

    Reply

  54. May 08, 2012 at 3:45 pm, John said:

    Doesn’t work on my computer with windows 7

    Reply

  55. May 08, 2012 at 3:47 pm, John said:

    doesn’t work

    Reply

  56. May 24, 2012 at 8:12 am, Hary said:

    Thanks! I’ve been looking for this info. I am using OS Vista.

    Reply

  57. June 08, 2012 at 10:26 pm, Kastamonu said:

    Thanks!

    Reply

  58. June 13, 2012 at 8:49 pm, Som said:

    If a user wants to flush DNS cache and if the user uses Internet via LAN connection ,the best way to do so is changing the DNS address manually . He just needs to alter the DNS entry .Setting alternative DNS address as primary address will solve the issue instantly. This trick worked for me . I faced the same problem . I am aLinux user .so , I installed NSCD client and tried to flush the cache . But , it could not solve my issue .i solved it myself just changing the DNS entry . It worked for me instantly .I kept the new entry for two days without any problem and later reinstated the older entry

    Reply

  59. June 21, 2012 at 7:06 am, webmaster said:

    thank you …

    Reply

  60. October 04, 2012 at 11:27 am, bank said:

    thanks for the article. But this cmd command didn’t worked for me.
    I am still unable to see the changed DNS site.

    Reply

  61. December 07, 2012 at 8:38 am, ionebacero said:

    thank’s, I followed those instructions but I still have the problem !

    Reply

  62. December 23, 2012 at 1:58 am, Tammy said:

    Pippin’s advice from June 2012 helped my slow running BRAND NEW Toshiba. It runs fast everywhere but at my parents house, have tried everything, that’s the only thing that worked. Still not perfect but definitely faster,
    Thanks

    Reply

  63. January 10, 2013 at 9:41 pm, Missy said:

    Thank you from me as well !!

    Reply

  64. January 12, 2013 at 1:10 pm, antalyamtv said:

    I like very much a command for

    Reply

  65. January 17, 2013 at 2:28 pm, Draga said:

    I would just like to sincerely thank the author of this how-to piece. I was becoming extremely frustrated with trying to clear my Vista’s dns cache by using other instructionals on various different websites…..not a good way to start off a day to say the least lol. Then I arrived here and my problem was resolved very quickly and very efficiently.

    One of the snags I kept running into, and could not get past, is receiving the message that said “Requested operation requires elevation”. I didn’t understand this because I *thought* I was already “running as admin”, *but misunderstood* :) .

    The sites that I had visited before this one did not cover this at all…..there was no mention of this particular error message and apparently they also left out a couple or so vital, and I do mean vital, steps, or at least it seems to me that way. It wasn’t until I followed the directions exactly as given above, including right-clicking on the Command Prompt and selecting “Run As Administrator”, that I finally received the following message- “Windows IP Configuration Successfully flushed the DNS Resolver Cache”, instead of the ever-loving bang-head-on-desk “Requested operation requires elevation” one :) . I definitely recommend! Thank you again to the author; your work and your help is much appreciated and will be shared with friends and family :) . ~God bless!~

    Reply

  66. January 21, 2013 at 2:36 pm, Tun Mohd Hilmi said:

    TQ greaaat !

    Reply

  67. January 23, 2013 at 12:27 pm, Hasan said:

    Magic, thanks I have tried many times to clear my cache but your magic helped me sort that.

    Reply

  68. February 13, 2013 at 3:56 am, V Tweet US said:

    Thanks for your guidance I have Flush DNS Cache of my Windows 7 and I feel a little change in performance.

    Reply

  69. March 04, 2013 at 6:45 am, ariston kombi servis said:

    thank you very much

    Reply

  70. March 28, 2013 at 12:36 pm, iconstoc said:

    after use this DNS Cache Flush I can access my website again, thanks

    Reply

  71. June 01, 2013 at 11:35 am, deva said:

    Type Cmd in the Start Search text box.

    Press Ctrl-Shift-Enter keyboard shortcut to run a Command Prompt as an Administrator. Allow elevation.

    Type netsh winsock reset in the Command Prompt , and then press the Enter key.

    Do the same process for refreshing the TCP/IP just replace the typed command with.

    netsh interface ipv4 reset press Enter

    netsh interface ipv6 reset press Enter

    ipconfig /flushdns press Enter

    Reply

  72. June 08, 2013 at 2:35 am, Avto said:

    Thanks for this. Works amazing

    Reply

  73. July 23, 2013 at 9:28 am, porselen diş fiyatları said:

    Thanks for the helpful tip :) I wasn’t sure if was the same as XP or not but it looks like it is

    Reply

  74. August 28, 2013 at 8:27 am, Ali Mese said:

    Exactly what I have been looking for. Thanks.

    Reply

  75. August 28, 2013 at 2:52 pm, Bodrum Emlak said:

    very well thank you

    Reply

  76. November 16, 2013 at 10:55 pm, rajesh said:

    thanks it works well

    Reply

  77. November 22, 2013 at 4:40 am, André said:

    very handy especially with software with crack.

    Reply

  78. December 13, 2013 at 2:11 pm, Brian Clancy said:

    You MAY be missing something. Throw the whole kitchen sink at it:

    How to Flush DNS Cache

    Click on Windows START button>key CMD in the Search Dialog Box > then right click on the CMD.EXE icon that appears and right click…
    select Run as Administrator
    and press Enter. (This will open a command prompt. You may have to give permission for this to run. Say OK.)
    At the command prompt,
    Type ipconfig /flushdns and press Enter.
    Type ipconfig /registerdns and press Enter.
    Type ipconfig /release and press Enter.
    Type ipconfig /renew and press Enter.
    Type netsh winsock reset and press Enter.
    Reboot the computer.

    Reply

Leave a Reply