Results 1 to 8 of 8

Thread: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

  1. #1
    jennapeltz@gmail.com Guest

    C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    I am trying to block a web site by entering into C:\WINDOWS
    \system32\drivers\etc\hosts the following line:

    127.0.0.1 www.ebay.com

    I then use my browser to test if that really works, by entering into
    the address bar:

    http://www.ebay.com

    However, for some strange reason, the browser gets to www.ebay.com as
    if no such line is in this hosts file - for some long minutes!

    After some time (I didn't measure exactly) it seems that Windows (or
    the browser) finally notice that the hosts file changed and block it
    just as I wanted.

    Any idea why this delay?

    How can I get rid of this delay?

    BTW, I tried restarting the DNS Client service to see if that helps,
    but it seems to not affect anything.

    Thanks,
    Jenna

  2. #2
    John Wunderlich Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    jennapeltz@gmail.com wrote in
    news:9270c330-ecfb-4708-bc8f-e3fbe7b4e79d@35g2000pry.googlegroups.com
    :

    > I am trying to block a web site by entering into C:\WINDOWS
    > \system32\drivers\etc\hosts the following line:
    >
    > 127.0.0.1 www.ebay.com
    >
    > I then use my browser to test if that really works, by entering
    > into the address bar:
    >
    > http://www.ebay.com
    >
    > However, for some strange reason, the browser gets to www.ebay.com
    > as if no such line is in this hosts file - for some long minutes!
    >
    > After some time (I didn't measure exactly) it seems that Windows
    > (or the browser) finally notice that the hosts file changed and
    > block it just as I wanted.
    >
    > Any idea why this delay?
    >
    > How can I get rid of this delay?
    >
    > BTW, I tried restarting the DNS Client service to see if that
    > helps, but it seems to not affect anything.
    >
    > Thanks, Jenna
    >


    1) Have you tried clearing the cache on your browser?

    2) You might also want to clear your DNS cache:
    Start->Run->Cmd then enter the command:
    ipconfig /flushdns

    HTH,
    -- John

  3. #3
    jennapeltz@gmail.com Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    On Jan 1, 8:08 pm, John Wunderlich <jwunderl...@lycos.com> wrote:
    >
    > 1) Have you tried clearing the cache on your browser?


    Yes, I did. It doesn't help.

    > 2) You might also want to clear your DNS cache:
    > Start->Run->Cmd then enter the command:
    > ipconfig /flushdns
    >


    I did that, too. It doesn't help.

    Is it possible that the browser, too, has its own DNS cache?

    Thanks,
    Jenna

  4. #4
    Ramesh Srinivasan, MS-MVP Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    Does disabling the DNS Client service help?

    --
    Regards,

    Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
    The Winhelponline Blog http://www.winhelponline.com/blog


    <jennapeltz@gmail.com> wrote in message
    news:9270c330-ecfb-4708-bc8f-e3fbe7b4e79d@35g2000pry.googlegroups.com...
    >I am trying to block a web site by entering into C:\WINDOWS
    > \system32\drivers\etc\hosts the following line:
    >
    > 127.0.0.1 www.ebay.com
    >
    > I then use my browser to test if that really works, by entering into
    > the address bar:
    >
    > http://www.ebay.com
    >
    > However, for some strange reason, the browser gets to www.ebay.com as
    > if no such line is in this hosts file - for some long minutes!
    >
    > After some time (I didn't measure exactly) it seems that Windows (or
    > the browser) finally notice that the hosts file changed and block it
    > just as I wanted.
    >
    > Any idea why this delay?
    >
    > How can I get rid of this delay?
    >
    > BTW, I tried restarting the DNS Client service to see if that helps,
    > but it seems to not affect anything.
    >
    > Thanks,
    > Jenna




  5. #5
    jennapeltz@gmail.com Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
    wrote:
    > Does disabling the DNS Client service help?
    >


    As I mentioned in my original post, I tried restarting the DNS Client
    service - including disabling it completely - but that doesn't help
    the DELAY problem.

    Please note: My problem is NOT that the HOSTS files change is not
    EVENTUALLY being recognized by the system.

    My problem is that it takes some unspecified delay for the browser to
    recognize it.

    I want to know where this delay is coming from, so that I can at least
    know when to expect that change or, better yet, how to control it.

    If I knew that clearing some cache would help, that would be super,
    but as I said earlier clearing the cache doesn't eliminate the DELAY.
    Where does that delay come from? How many layers and levels of caching
    are there for this poor DNS thing?

    Thanks,
    Jenna

  6. #6
    Jungle Man Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    On Fri, 2 Jan 2009 08:40:49 -0800 (PST), jennapeltz@gmail.com wrote:

    >On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
    >wrote:
    >> Does disabling the DNS Client service help?
    >>

    >
    >As I mentioned in my original post, I tried restarting the DNS Client
    >service - including disabling it completely - but that doesn't help
    >the DELAY problem.
    >
    >Please note: My problem is NOT that the HOSTS files change is not
    >EVENTUALLY being recognized by the system.
    >
    >My problem is that it takes some unspecified delay for the browser to
    >recognize it.
    >
    >I want to know where this delay is coming from, so that I can at least
    >know when to expect that change or, better yet, how to control it.
    >
    >If I knew that clearing some cache would help, that would be super,
    >but as I said earlier clearing the cache doesn't eliminate the DELAY.
    >Where does that delay come from? How many layers and levels of caching
    >are there for this poor DNS thing?
    >
    >Thanks,
    >Jenna



    Simply close the browser and then restart the browser. Upon restarting
    the browser, the domain entered into the HOSTS file should be blocked.


    JM

  7. #7
    The Real Truth MVP Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    Try my FixIE Tool. Download it here
    http://pcbutts1.com/downloads/tools/tools.htm



    --
    The Real Truth http://pcbutts1-therealtruth.blogspot.com/




    <jennapeltz@gmail.com> wrote in message
    news:f1d63e31-eb45-404e-8aad-b35a9487f057@40g2000prx.googlegroups.com...
    > On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
    > wrote:
    >> Does disabling the DNS Client service help?
    >>

    >
    > As I mentioned in my original post, I tried restarting the DNS Client
    > service - including disabling it completely - but that doesn't help
    > the DELAY problem.
    >
    > Please note: My problem is NOT that the HOSTS files change is not
    > EVENTUALLY being recognized by the system.
    >
    > My problem is that it takes some unspecified delay for the browser to
    > recognize it.
    >
    > I want to know where this delay is coming from, so that I can at least
    > know when to expect that change or, better yet, how to control it.
    >
    > If I knew that clearing some cache would help, that would be super,
    > but as I said earlier clearing the cache doesn't eliminate the DELAY.
    > Where does that delay come from? How many layers and levels of caching
    > are there for this poor DNS thing?
    >
    > Thanks,
    > Jenna



  8. #8
    Unknown Guest

    Re: C:\WINDOWS\system32\drivers\etc\hosts doesn't work!

    Don't you really mean your destructive tool? I wouldn't run it under ANY
    circumstances.
    "The Real Truth MVP" <toidi@tpap.com> wrote in message
    news:bPs7l.15784$Ws1.5208@nlpi064.nbdc.sbc.com...
    > Try my FixIE Tool. Download it here
    > http://pcbutts1.com/downloads/tools/tools.htm
    >
    >
    >
    > --
    > The Real Truth http://pcbutts1-therealtruth.blogspot.com/
    >
    >
    >
    >
    > <jennapeltz@gmail.com> wrote in message
    > news:f1d63e31-eb45-404e-8aad-b35a9487f057@40g2000prx.googlegroups.com...
    >> On Jan 2, 12:44 am, "Ramesh Srinivasan, MS-MVP" <ramesh@unknownhost>
    >> wrote:
    >>> Does disabling the DNS Client service help?
    >>>

    >>
    >> As I mentioned in my original post, I tried restarting the DNS Client
    >> service - including disabling it completely - but that doesn't help
    >> the DELAY problem.
    >>
    >> Please note: My problem is NOT that the HOSTS files change is not
    >> EVENTUALLY being recognized by the system.
    >>
    >> My problem is that it takes some unspecified delay for the browser to
    >> recognize it.
    >>
    >> I want to know where this delay is coming from, so that I can at least
    >> know when to expect that change or, better yet, how to control it.
    >>
    >> If I knew that clearing some cache would help, that would be super,
    >> but as I said earlier clearing the cache doesn't eliminate the DELAY.
    >> Where does that delay come from? How many layers and levels of caching
    >> are there for this poor DNS thing?
    >>
    >> Thanks,
    >> Jenna

    >




Similar Threads

  1. Replies: 1
    Last Post: 05-10-2011, 05:41 PM
  2. systemroot system32 restore rstrui.exe doesn't work
    By Brown williams in forum Operating Systems
    Replies: 3
    Last Post: 12-06-2009, 11:44 AM
  3. C:\WINDOWS\system32\drivers\etc\hosts
    By Cuzman in forum Vista Help
    Replies: 5
    Last Post: 08-05-2009, 08:41 PM
  4. C:\Windows\System32\drivers\etc\hosts
    By Yan in forum Vista Help
    Replies: 1
    Last Post: 20-09-2008, 02:05 AM
  5. Replies: 3
    Last Post: 12-01-2007, 04:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •