George Breese, 3/24/01
I wrote this as a disposable program to solve a short-term problem. I offer no warranty on it and accept no liability for its use.
This program will create an LMHOSTS file, which is needed by some Microsoft applications. It creates the file by looking up a name of a computer on the Internet, obtaining the IP address of the computer, and writing an LMHOSTS file to the current directory.
LMHOST <NT name> <DNS name>
The NT name is the name of the computer as it should appear in the LMHOSTS file.
The DNS name is the name of the computer as it is known to the Internet.
LMHOST SERVERBOX www.networking.tzo.com
... yields the following file ...
# # LMHOSTS file # created by lmhost # Copyright 2000, George E. Breese. All rights reserved. # # Command line: Windows host name SERVERBOX uses the IP address # of www.networking.tzo.com. 18.104.22.168 SERVERBOX #PRE