Re: Disappearing HOSTS file XP Pro SP2

Tech-Archive recommends: Fix windows errors by optimizing your registry



jonnybee <jonnybee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

My reply is at the bottom of your message.

jonnybee <jonnybee@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi All -

I do web development, and I use the HOSTS files on our local
machines to access test servers that don't have 'public' DNS names
and for virtual servers on the local loop so we don't have to
publish over the 'net to our own IIS6 servers.

It works brilliantly. HOWEVER - I have one machine that just won't
let me create/edit a HOSTS file. Well, it will let me create it,
and then it will just wink out of existence right before your eyes.

This box is running XP Pro 32 with SP2 installed & is up-to-date on
hotfixes/patches.

This is the only machine I am having this problem with AFAIK. I
have 4 others where this is not the case. 2 with XP Pro and 2 with
Media Center.

I'm not sure when the problem began to be honest because machines
are tasked differently. I noticed when I started publishing to a
new virtual server - WOW - that was slow... of course I'm
publishing to a fully qualified path, and I ha created a host file
to point to the local server, so I first pinged the FQDN - whoa -
ti was resolving to the public DNS entry. It was so slow because
the traffic was flowing out over the internet to the provider and
then back to the server. I thought I might have made a mistake in
the HOSTS entry, so I went to system32\drivers\etc - NO HOST FILE!

Yep, I was logged on as Administrator when I created the file. I
tried a couple of times, and finally used Crimson editor to create
the file, and left the system32\drivers\etc folder open in Explorer.
About a minute later - POOF!

I suspect this is a function of Windows System File Checker. I have
done some research along those lines, but I'm unsure if the HOSTS
file is one of those protected? The only way I can figure this one
based on what I have read is that this machine didn't have a HOSTS
file when SP2 was applied - so SFC thinks there should not be one.
One other thought has occurred and that was the Malware Removal tool
might be responsible.

I'm at a complete loss here - Thanks for any ideas.

jon b

SFC can't have anything to do with this.
What antispyware/antimalware applications do you have running on
this box? Disable them and test again.


Heh - NOT running any anti-spyware or anti-malware. I checked for the
presence of the MS malware tool - not in sight. I tried uninstalling
a couple of toolbars that had attached themselves thinking that might
be the source - nope. We run the Big 4 browsers for testing IE, FF,
Opera and Safari - and sometimes those toolbars get attached.

BUT - I think we might have 'acquired' a rootkit. Whatever is
killing the HOSTS file takes a minute or two to find it. BUT if you
launch a browser - presto - doesn't matter what browser. I'm
thinking a port 80 watcher. I had done a full system virusscan -
negative - then I ran HijackThis and came across one of those gnarly
dll names and a reference to it from a virusscan log. So I'm gonna
do the brave (and sensible) thing at wipe it. I have already burned
two many hours on this... Thank God for a couple of spare machines.

Before I do I will run ActivePorts on it to see if there's a logger or
redirector hanging about.

Thanks very much for your speedy, speedy and thoughtful input

jon b


You're most welcome - and ugh, what a pain in the ___. Best of luck. You're
probably doing the right thing.


.



Relevant Pages

  • Re: Disappearing HOSTS file XP Pro SP2
    ... and I use the HOSTS files on our local machines ... virtual servers on the local loop so we don't have to publish over ... HOSTS file takes a minute or two to find it. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Disappearing HOSTS file XP Pro SP2
    ... machines to access test servers that don't have 'public' DNS names ... and for virtual servers on the local loop so we don't have to ... whoa - ti was resolving to the public DNS entry. ... HOSTS file is one of those protected? ...
    (microsoft.public.windowsxp.network_web)
  • Re: [Full-disclosure] Re: According to Ivan, the secret ZA phone-homeserver is located at 12
    ... Your quite a piece fo work Dave. ... Do you know how windows hosts file ... destination servers to Zonelaram". ... I don't care since your email just qualified you ...
    (Full-Disclosure)
  • Re: Who Really Controls Internet?
    ... >> Those are just TLD name servers, ... You could perform something similar with your hosts file. ... > an important piece of the Internet architecture. ... a lookup site. ...
    (comp.dcom.telecom)
  • Re: Outlook 2001 on OSX - a solution
    ... to include ALL of our servers IP's and their names. ... network connectivity. ... >>application and some unix to edit the hosts file for OSX ... >>and add an entry for the mail server. ...
    (microsoft.public.outlook.mac)