Go Back   TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



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

Windows XP Support


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-01-2009
jennapeltz@gmail.com
 
Posts: n/a
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

Reply With Quote
  #2  
Old 02-01-2009
John Wunderlich
 
Posts: n/a
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
Reply With Quote
  #3  
Old 02-01-2009
jennapeltz@gmail.com
 
Posts: n/a
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
Reply With Quote
  #4  
Old 02-01-2009
Ramesh Srinivasan, MS-MVP
 
Posts: n/a
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



Reply With Quote
  #5  
Old 02-01-2009
jennapeltz@gmail.com
 
Posts: n/a
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
Reply With Quote
  #6  
Old 02-01-2009
Jungle Man
 
Posts: n/a
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
Reply With Quote
  #7  
Old 02-01-2009
The Real Truth MVP
 
Posts: n/a
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


Reply With Quote
  #8  
Old 02-01-2009
Unknown
 
Posts: n/a
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

>



Reply With Quote
Reply

  TechArena Community > Technical Support > Computer Help > Windows XP > Windows XP Support
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "C:\WINDOWS\system32\drivers\etc\hosts doesn't work!"
Thread Thread Starter Forum Replies Last Post
After allowing Windows to update audio drivers, audio is distorted.doesn't work. tiredeyes Windows XP Support 1 05-10-2011 05:41 PM
systemroot system32 restore rstrui.exe doesn't work Brown williams Operating Systems 3 12-06-2009 11:44 AM
C:\WINDOWS\system32\drivers\etc\hosts Cuzman Vista Help 5 08-05-2009 08:41 PM
C:\Windows\System32\drivers\etc\hosts Yan Vista Help 1 20-09-2008 02:05 AM
RE:AVG Error Message- Reading Error c:\windows\system32\drivers\etc\hosts kusumanabh AntiVirus Software 3 12-01-2007 04:20 AM


All times are GMT +5.5. The time now is 11:07 PM.