Tuesday, August 5, 2008

Lmhosts to Resolve Netbios Name Resolution

Bulletin: 050808

Software Effected:
ServerMigrator, AccessReporter, PasswordCopy

Issue:
When I go to add computers from the domain, the available computers drop down window is empty

Solution:
Winzero software products that interact with computers rely on the browser service for resolution.
If the available computers - servers drop down is empty then the API cannot resolve computers from the browser list.

To remedy this situation quickly, we recommend the use of lmhosts files for each computer that interacts with the Winzero software.

Lmhosts file creation
The Lmhosts file is a local text file that maps Internet Protocol (IP) addresses to NetBIOS names of remote computers to communicate over the TCP/IP protocol.

The lmhosts file is located in the Windows or WINNT /System32/Drivers/ETC directory. By default there is a sample file called lmhosts.sam and must be renamed Lmhosts without an extension.

The layout of the lmhosts file is:
IPaddressTABComputernameTAB#PRETAB#DOM:DomainName

There is one entry perline for each computer and a TAB between each item. We recommend adding the PDC/PDC Emulator and the domain entry as well in the format:

IPaddressTABComputer1TAB#PRETAB#DOM:DomainName
IPaddressTABComputer2TAB#PRETAB#DOM:DomainName
IPaddressTABPDCTAB#PRETAB#DOM:DomainName
IPaddressPDCTAB"DomainNameTAB\0x1b"TAB#PRE

Sample Lmhosts File

192.168.0.1 DC1 #PRE #DOM:WINDEV
192.168.0.25 WKS1 #PRE #DOM:WINDEV
192.168.0.5 SERVER1 #PRE #DOM:WINDEV
192.168.0.1 "WINDEV \0x1b" #PRE

Note The domain name in this entry is case sensitive. Make sure that you use uppercase characters for the domain and computer names. If you use lowercase characters for the domain name, NetBT does not recognize the name.

To reload of the NBT Remote Cache Name Table, save the file as Lmhosts without an extension.
Launch the CMD prompt and use the command: nbtstat -R
To display the NBT Remote Cache Name Table use the command: nbtstat -c

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.