Is the location of the hosts file on Win98 stored in the registry or hard coded? Can this be changed? If so, where?
Rick
Page 1 of 1
Hosts file Changing the default location.
#2
Posted 22 December 2007 - 08:59 PM
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?
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?
#3
Posted 22 December 2007 - 10:51 PM
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
This post has been edited by herbalist: 22 December 2007 - 10:58 PM
#4
Posted 23 December 2007 - 08:00 AM
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.
#5
Posted 24 December 2007 - 10:00 AM
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
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
Share this topic:
Page 1 of 1



Help

Back to top









