DNS Flush Frustration

Today, Joey asks:

Hi I’m trying to install a new wireless version of BT broadband but every time I do it won’t let me due to an error in the DNS cache.

I’ve tried using command prompt and typing in “ipconfig /flushdns” but it says that the function failed during execution. I’ve already tried rebooting my laptop but that didn’t work either and I was wondering if you had any tips. My laptop runs on Windows XP home edition by the way if that makes any difference.

I’ve seen this before. So here is what I would suggest to get the failing DNS flush to work as desired. First, I would remind you that I will be asking you to make an edit to your registry. Understand that backing up your registry is a good idea here, as always.

Now from a cmd prompt, enter the following:

REG ADD HKLMSYSTEMCurrentControlSetServicesDnscache /V Start /T REG_DWORD /F /D 2

Make a close note of the spaces at /V (space) Start /T (space) REG_DWORD (space) /F (space) /D (space) 2

After entering this and saving it, restart your PC. Good luck.

Do you have an IT-related question? Perhaps you are just burnt out on writing on the walls with crayons? Whatever the comments may be, drop me a line, and you too can “Just Ask Matt!”

Article Written by

  • http://wp3.lockergnome.com/nexus/scribblepinch/ Robert Glen Fogarty

    Sounds like a bit of…flushtration!

    Sorry. I can never just walk away from bad puns waiting to happen. It is my curse!

  • Mike

    When you run the ipconfig /flushdns command on Windows XP, you receive an error similar to:

    Could not flush the DNS Resolver Cache: Function failed during execution.

    When you attempt to Repair the Network Connections, you receive an error like:

    Windows could not finish repairing the problem because the following action could not be completed:
    Clearing the DNS Cache

    For assistance, contact the person who manages your network.

    This behavior will occur if the DNS Client service is not running.

    To fix this problem:

    1. Open a CMD.EXE window.

    2. Type the following command and press Enter:

    REG ADD HKLMSYSTEMCurrentControlSetServicesDnscache /V Start /T REG_DWORD /F /D 2

    3. Shutdown and restart Windows XP.

  • Mike

    Here’s the Technet article if you need to confirm

  • http://www.matthartley.com Matt Hartley

    Mike: Yeah, I think we covered that. :)

  • teqjack

    Or, if you are not actually running a server, you could just turn off (“disable”) the DNS service. Yes, this means look-up will start with your HOSTS (%Systemroot%System32DriversEtc) file instead of it being second, and then your ISP: so? If you need to, you can add address_dname lines to HOSTS, but I doubt that is necessary for most of us.

    And, slightly tricky, you can add lines (eg “ media.fastclick.net”) to HOSTS to get rid of [some] popup/under crap (or add to “Restricted” zone in the browser, eg “*.zedo.com”, with the advantage of that asterisk…).

  • http://c Ron

    I am searching a DNS help here also.
    What is happening is I get locked out so to say from my domain.
    My hosting provider says flush dns in the cmd which I do and reboot the router and wireless laptop.
    Ok I can get on my domain after that.
    I am boiling it down to WS_FTP my FTP program possibly, even though I have re installed it same thing seems to happen, I will transfer files and then it seems to stop then I can’t log into the domain with FTP nor can I even visit my domain home page or gain access to my CP for my domain.
    I can surf anywhere in the world but not my domain or any program like FTP to transfer files to and from the domain.
    Instead in the task bar saying it is going to my domain it will say and go to page can’t be displayed.
    FlushDNS again reboot everything and I again can access my domain and FTP.
    After a few minutes using FTP it seems to go back to no access again.

    Ever hear of this or a cause I may look for that is doing this?
    It has me going nuts.
    My network is a dsl modem,4 port router 1 port goes to a hub with 8 more ports.
    I have 2 playstation game sets and 3 computers and a DVR camera security system hooked up to the dsl line.
    The laptop is wireless and print server is wireless and the DVR is its own server using a external DNS service to go out to the net through dyndns.org service so if the ip changes I wont loose access online to remotely view the security cameras.
    I am just so lost as why this keeps happening to me and only to my domain and looking for suggestions.

  • Cable

    When I put in the fix I got a message that says “too many command line perameters”

    What do I do now

  • David Chan, MD

    Hi, Matt:

    I edited the registry as you suggested and I am surfing faster. But still unable to execute ipconfig /flushdns or repair the network connection without seeing the same error message. Does it matter? Other suggestions? Thanx!