HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-20-2007, 08:02 PM
MrNobody
Guest
 
Posts: n/a
Default Windows XP is ignoring my changes to hosts file

I am having a problem where no matter what I do Windows completely ignores
any additions to my hosts file.

I tried adding the following entry:
127.0.0.1 something
to my hosts file, and then I open up a new command prompt and type "ping
something" and after a few seconds delay it says ping request could not find
host something.

I have tried the following:

1. Made sure the file is just "hosts" with no file extension like .txt or
anything. 100% sure about this

2. Opened up regedit and navigated to the Tcpip parameters looking for
DatabasePath and made sure it pointed to system32/drivers/etc.

3. I have run ipconfig /flushdns numerous times

4. I have rebooted numerous times

5. I erased everything in my hosts file except for the one default entry
"127.0.0.1 localhost" and my new entry underneath it in a new line. So
the file only contained those two lines. the ip number and the hostname were
separated by 5 spaces. I also tried using tabs.

Other than that this is a brand new build of Windows XP Pro on a formatted
hard drive and I barely even installed anything on it besides my development
tools like Eclipse and Java JDK. There is absolutely no funny business with
my network, it is setup to use my wired LAN no proxies, auto detect DHCP
settings, just about everything is default!

Please help! This is such an odd problem
Reply With Quote
Sponsored Links
  #2  
Old 08-20-2007, 08:10 PM
R. McCarty
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

Many security programs now provide "Locks" against changes to
the Hosts file. Would you have anything installed that might interfere
with Hosts resolution ?

The NSLookup command might help, I'd read through the following:
http://www.microsoft.com/resources/d....mspx?mfr=true

"MrNobody" <MrNobody@discussions.microsoft.com> wrote in message
news:C62706FF-25CC-45D5-B504-03EC53539B20@microsoft.com...
>I am having a problem where no matter what I do Windows completely ignores
> any additions to my hosts file.
>
> I tried adding the following entry:
> 127.0.0.1 something
> to my hosts file, and then I open up a new command prompt and type "ping
> something" and after a few seconds delay it says ping request could not
> find
> host something.
>
> I have tried the following:
>
> 1. Made sure the file is just "hosts" with no file extension like .txt or
> anything. 100% sure about this
>
> 2. Opened up regedit and navigated to the Tcpip parameters looking for
> DatabasePath and made sure it pointed to system32/drivers/etc.
>
> 3. I have run ipconfig /flushdns numerous times
>
> 4. I have rebooted numerous times
>
> 5. I erased everything in my hosts file except for the one default entry
> "127.0.0.1 localhost" and my new entry underneath it in a new line. So
> the file only contained those two lines. the ip number and the hostname
> were
> separated by 5 spaces. I also tried using tabs.
>
> Other than that this is a brand new build of Windows XP Pro on a formatted
> hard drive and I barely even installed anything on it besides my
> development
> tools like Eclipse and Java JDK. There is absolutely no funny business
> with
> my network, it is setup to use my wired LAN no proxies, auto detect DHCP
> settings, just about everything is default!
>
> Please help! This is such an odd problem



Reply With Quote
  #3  
Old 08-20-2007, 08:13 PM
PA Bear
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

One or more options/settings in an ever-growing number of third-party
applications may be disallowing the change(s) from "sticking". These include
but are not limited to Ad-aware's Ad-Watch, Spybot Tea Timer,
SpywareBlaster, SpySweeper, Spyware Doctor, Norton AntiVirus, McAfee
VirusScan and/or Antispyware, and Zone Alarm (Free and Pro).

Here's something else about NAV that you may not be aware of:
http://bertk.mvps.org/html/symantecdoc1.html
--
~Robear Dyer (PA Bear)
MS MVP-Windows (IE, OE, Security, Shell/User)
AumHa VSOP & Admin; DTS-L.org

MrNobody wrote:
> I am having a problem where no matter what I do Windows completely ignores
> any additions to my hosts file.
>
> I tried adding the following entry:
> 127.0.0.1 something
> to my hosts file, and then I open up a new command prompt and type "ping
> something" and after a few seconds delay it says ping request could not
> find
> host something.
>
> I have tried the following:
>
> 1. Made sure the file is just "hosts" with no file extension like .txt or
> anything. 100% sure about this
>
> 2. Opened up regedit and navigated to the Tcpip parameters looking for
> DatabasePath and made sure it pointed to system32/drivers/etc.
>
> 3. I have run ipconfig /flushdns numerous times
>
> 4. I have rebooted numerous times
>
> 5. I erased everything in my hosts file except for the one default entry
> "127.0.0.1 localhost" and my new entry underneath it in a new line. So
> the file only contained those two lines. the ip number and the hostname
> were
> separated by 5 spaces. I also tried using tabs.
>
> Other than that this is a brand new build of Windows XP Pro on a formatted
> hard drive and I barely even installed anything on it besides my
> development
> tools like Eclipse and Java JDK. There is absolutely no funny business
> with
> my network, it is setup to use my wired LAN no proxies, auto detect DHCP
> settings, just about everything is default!
>
> Please help! This is such an odd problem


Reply With Quote
  #4  
Old 08-20-2007, 08:26 PM
MrNobody
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

Well, if my changes were not "sticking" due to a third party program, then
when I opened the hosts file again it should show the original file, not my
changes, correct? And whenever I open my hosts file even after a reboot I see
my changes in place.

Also, I have not installed any of those programs or any kind of anti virus
or anything like that. Just a few development tools and that's it.

I'm reading up on the NSloolup command now
Reply With Quote
  #5  
Old 08-20-2007, 09:05 PM
jorgen
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

MrNobody wrote:

> I'm reading up on the NSloolup command now


nslookup contacts the dns server directly. So whatever entries you have
in the hostfile won't show up when using this tool
Reply With Quote
  #6  
Old 08-20-2007, 10:56 PM
MrNobody
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

Yeah so it looks like it won't help me.

Any other ideas? I'm willing to try anything at this point. It is such a
bizarre situation.
Reply With Quote
  #7  
Old 08-21-2007, 12:08 AM
GO
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

Disable the DNS Client service (or just stop it and change it's Startup Type
to Manual). This is a solution I stumbled across quite some time ago when I
ran into the same problem as you. I've yet to come across an explaination
as to why all of a sudden XP starts to ignore the hosts file. This solution
could possibly cause problems, depending on your environment (as far as I
can tell it's only necessary if you're in a domain setting), but it has yet
to cause me any problems.

MrNobody wrote:
> Yeah so it looks like it won't help me.
>
> Any other ideas? I'm willing to try anything at this point. It is
> such a bizarre situation.



Reply With Quote
  #8  
Old 08-21-2007, 12:50 AM
MrNobody
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

Yes! That did it. I don't think I rely on tha DNS client service for anything
so it shouldn't affect me either.

Sure is strange though how this was required for my latest build on my
laptop. After formatting and installing Windows XP on this laptop several
times over the past 4 years it only decided to this this one time. .. oh well!

Thanks!

"GO" wrote:

> Disable the DNS Client service (or just stop it and change it's Startup Type
> to Manual). This is a solution I stumbled across quite some time ago when I
> ran into the same problem as you. I've yet to come across an explaination
> as to why all of a sudden XP starts to ignore the hosts file. This solution
> could possibly cause problems, depending on your environment (as far as I
> can tell it's only necessary if you're in a domain setting), but it has yet
> to cause me any problems.
>
> MrNobody wrote:
> > Yeah so it looks like it won't help me.
> >
> > Any other ideas? I'm willing to try anything at this point. It is
> > such a bizarre situation.

>
>
>

Reply With Quote
  #9  
Old 08-21-2007, 03:47 AM
GO
Guest
 
Posts: n/a
Default Re: Windows XP is ignoring my changes to hosts file

Your welcome. Glad it worked.

MrNobody wrote:
> Yes! That did it. I don't think I rely on tha DNS client service for
> anything so it shouldn't affect me either.
>
> Sure is strange though how this was required for my latest build on my
> laptop. After formatting and installing Windows XP on this laptop
> several times over the past 4 years it only decided to this this one
> time. .. oh well!
>
> Thanks!
>
> "GO" wrote:
>
>> Disable the DNS Client service (or just stop it and change it's
>> Startup Type to Manual). This is a solution I stumbled across quite
>> some time ago when I ran into the same problem as you. I've yet to
>> come across an explaination as to why all of a sudden XP starts to
>> ignore the hosts file. This solution could possibly cause problems,
>> depending on your environment (as far as I can tell it's only
>> necessary if you're in a domain setting), but it has yet to cause me
>> any problems.
>>
>> MrNobody wrote:
>>> Yeah so it looks like it won't help me.
>>>
>>> Any other ideas? I'm willing to try anything at this point. It is
>>> such a bizarre situation.



Reply With Quote
Sponsored Links
Fix your Windows Problems - FAST.
FREE Safe Scan Registry Check. Locate & Fix Errors in Minutes!
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
access to the hosts file denied chunnel Windows Vista 5 10-14-2009 12:58 AM
activate changes to hosts file bbxrider Windows XP 1 07-26-2007 05:33 PM
Hosts file - recreate itself? lhs Windows XP 7 05-20-2007 04:38 PM
Use of the HOSTS File Arthur Shapiro Windows XP 1 04-09-2007 06:53 PM


All times are GMT. The time now is 03:47 PM.


Powered by vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger