Changing Hosts file

R

Ron

Hi,

My network is Netware5 with win2k workstations. When
users login, the login script runs a batch file to update
the hosts file on the workstation. Our users only have
user rights, so the hosts file isn't updated.
Zenworks has been istalled incorrectly so I'm not looking
to use that as my solution.
I'm thinking about moving the hosts file to another
location (eg C:\) where the user would have rights to edit
the file on login.
How do I change the location of the hosts file. I tried
to change an entry in the registry that pointed to the etc
dir but on restart of PC it was still looking for the
hosts file in the ETC dir.
Is it a system variable entry perhaps??

Any help would be great.
Regards,
Ron.
 
R

Ramon Smits

Ron said:
My network is Netware5 with win2k workstations. When
users login, the login script runs a batch file to update
the hosts file on the workstation. Our users only have
user rights, so the hosts file isn't updated.
Zenworks has been istalled incorrectly so I'm not looking
to use that as my solution.
I'm thinking about moving the hosts file to another
location (eg C:\) where the user would have rights to edit
the file on login.
How do I change the location of the hosts file. I tried
to change an entry in the registry that pointed to the etc
dir but on restart of PC it was still looking for the
hosts file in the ETC dir.
Is it a system variable entry perhaps??


Why would you want to change the host file on your network clients??
Isn't that where DNS servers are ment to be used for?
 
J

Jeff Cochran

My network is Netware5 with win2k workstations. When
users login, the login script runs a batch file to update
the hosts file on the workstation. Our users only have
user rights, so the hosts file isn't updated.
Zenworks has been istalled incorrectly so I'm not looking
to use that as my solution.

So reinstall it correctly, you'll want it for other functions anyway.
I'm thinking about moving the hosts file to another
location (eg C:\) where the user would have rights to edit
the file on login.
How do I change the location of the hosts file. I tried
to change an entry in the registry that pointed to the etc
dir but on restart of PC it was still looking for the
hosts file in the ETC dir.
Is it a system variable entry perhaps??

You don't. What you do is use a DNS server and stop dinking with a
hosts file. That's pretty much why DNS exists, and even Novell has
supported it for the last decade.

Jeff
 
M

Michael Johnston [MSFT]

Changing the location of the hosts file is a bad idea. Use DNS! That's the best way to go. If you absolutely positively must
change the location of the hosts file change this registry key:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\DataBasePath


Thank you,
Mike Johnston
Microsoft Network Support
--

This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the
terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from
which they originated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top