There may be instances when you experience name resolution
issues on your TCP/IP-based network and you need to use an LMHOSTS file to
resolve NetBIOS names. This article describes how to create an LMHOSTS file to
aid in name resolution and domain validation.
Use the following steps to create a correctly formatted
Using a text editor, for example, Notepad.exe or Edit.com,
create a file called LMHOSTS, and then save it in the following folder:
Note that the file name is LMHOSTS, with no extension. If you are
using Notepad.exe, Notepad.exe may automatically append .txt. If Notepad.exe
does this, rename the file, using no extension, at a command
Note also that DOMAIN_NAME in this entry is case-sensitive. Make
sure to use all capital letters.
Replace 10.0.0.1 with the IP address of your
primary domain controller (PDC), replace PDCName with the NetBIOS name of your
PDC, and replace DOMAIN_NAME with the name of your Windows NT-based domain.
The correct spacing of these entries is imperative. In the line that
has quotation marks ("), there must be a total of exactly 20 characters between
the quotation marks. To get this total of 20 characters, type the domain name,
add enough spaces to pad the domain name to 15 characters, and then add the
backslash and the NetBIOS hex number that represents the service type.
The backslash should be the sixteenth character. To help you know
exactly where the sixteenth character is, copy the following line to your
# IP Address "123456789012345*7890"
Line up the quotation marks in your comment line with the
quotation marks in the copied line, by adding or removing spaces from your
comment line to place the \ on the sixteenth column (the column that is marked
with the asterisk). Note that you must use spaces, not a tab character, after
the domain name and before the \.
For additional information, click the article
number below to view the article in the Microsoft Knowledge Base: