Information Technology Reference
In-Depth Information
Solution
Using a Graphical User Interface
To enable Lmhosts lookups via the GUI, follow these steps:
1.
Open the Network Connections applet.
2.
Double-click on the Local Area Connection icon.
3.
Click on Internet Protocol (TCP/IP), and select Properties.
4.
Click on Advanced. From the WINS tab, place a check mark next to Enable LMHOSTS
Lookup. (This is selected by default.)
5.
To import the Lmhosts file from a central or alternate location, click on Import LMHOSTS.
Browse to the location of the Lmhosts file and click on Open.
6.
Click OK when you're finished.
■
Note
If any entries in the Lmhosts file contain the
#PRE
tag, designating them as preloaded entries, you
should issue the following command to load these entries into memory:
nbtstat -R
Using the Registry
To disable the use of Lmhosts for NetBIOS name resolution, configure the following Registry value:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\]
"EnableLMHOSTS"=dword:0
To configure a NetBIOS scope ID for a Windows Server 2003 computer, create and configure
the following Registry value:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\
"ScopeID"=REG_SZ: "
<Scope ID>
"
Using VBScript
This code enables the following three optional WINS parameters:
Enables DNS as a backup for WINS name resolution
Enables lookup from a central Lmhosts file
Configures the local computer with a NetBIOS scope ID of
FINANCE
' ------ SCRIPT CONFIGURATION ------
strComputer = "."
EnableDNS = True
EnableLMHosts = True