Jump to content

Recommended Posts


Posted

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?

Posted (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\MSTCP

Tried adding a similar string for hosts but it didn't work.

Rick

Edited by herbalist
Posted

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.

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...