herbalist Posted December 22, 2007 Posted December 22, 2007 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 Posted December 23, 2007 Posted December 23, 2007 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 Posted December 23, 2007 Author Posted December 23, 2007 (edited) 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\MSTCPTried adding a similar string for hosts but it didn't work. Rick Edited December 23, 2007 by herbalist
Mijzelf Posted December 23, 2007 Posted December 23, 2007 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 Posted December 24, 2007 Posted December 24, 2007 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.mspxThere 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now