lmhosts.sam file

Darksamie

Senior member
Mar 23, 2000
220
0
0
I have been having a lot of trouble with the lmhosts.sam file and logging in to a VPN connection.

Basically, the lmhosts file does not get imported at boot up. So when I go to access the exchange server, it does not know the host name because the named address in the lmhosts file does not get used. If after I connect to the Internet, I import the file again - it works. This however is a long and annoying process.

Is there any way that I can do this through use of a batch file or something similar? DNS does not work through the VPN connection, so I am limited to lmhosts or another way of getting this done.

Running Windows 2000 Pro and the VPN is a watchguard firebox.
 

darktubbly

Senior member
Aug 19, 2002
595
0
0
Isn't the hosts file in {WINDOWS DIRECTORY}\system32\drivers\etc? I thought lmhosts.sam was just a sample file.
 

Soybomb

Diamond Member
Jun 30, 2000
9,506
2
81
Did you rename lmhosts.sam to lmhosts? I'm not much of a windows guy so I may be wrong, but I believe that is a required step.
 

Darksamie

Senior member
Mar 23, 2000
220
0
0
It doesnt really matter what the file is called, as long as it is modified to hold the addresses that you want, and imported.

I have done this.
 

PowerMacG5

Diamond Member
Apr 14, 2002
7,701
0
0
lmhosts.sam has to be renamed to lmhosts. Also, you can try to reload the file by running the command (without quotes):
"nbtstat -R"