Help - Search - Members - Calendar
Full Version: Hosts file
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows 95/98/98SE/ME

   
Google Internet Forums Unattended CD/DVD Guide
herbalist
Is the location of the hosts file on Win98 stored in the registry or hard coded? Can this be changed? If so, where?
Rick
ShadeTreeLee
Since I have never seen a registry "tip" illustrating such a change, and also because each version of Windows seems to have a different place for storing it, I would assume it was hard coded into an essential core IE file such as Urlmon.dll until further notice.
Which means one would have to rewrite that file in order to change the location of the HOST file. I've no clue on how to begin to do that.

Why would you want to change the location of the HOST file?
herbalist
QUOTE
Why would you want to change the location of the HOST file?

It's for a live CD experiment I'm working on. If the hosts file is left in the windows directory, it'll be part of the CD and uneditable. I'd like to be able to specify another location for it such as a separate CD or ideally, on an encrypted hard drive. It's not absolutely necessary but it fits with the overall idea I'm trying build. It would also help reduce the amount of space used on the CD.

I saw a string for specifying the location of LmhostFile in
My Computer\HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP
Tried adding a similar string for hosts but it didn't work.
Rick
Mijzelf
In lmhosts you can use a line #include=filename to include another file (usually somewhere on a server). Don't know if that works in hosts also.
MDGx
To my knowledge HOSTS location in Windows 95/98/ME is "hardwired", and must be found in %windir% [usually C:\WINDOWS].

In NT4/2000/XP/2003/Vista HOSTS location can be changed by modifying this registry value:
http://www.microsoft.com/technet/prodtechn...ntry/33565.mspx

There are probably [?] network/internet applications which use customized HOSTS, and those probably have a way to specify HOSTS location, but I don't know of any.

IMHO:
Sounds like "include=filename" for custom HOSTS location might be a Perl, CGI or PHP application/config file. [?]

HTH
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.