Troubleshooting LMHOSTS Name Resolution Issues

Last reviewed: February 19, 1998
Article ID: Q180099
The information in this article applies to:
  • Microsoft Windows NT Workstation versions 3.5, 3.51, and 4.0
  • Microsoft Windows NT Server versions 3.5, 3.51, and 4.0
  • Microsoft Windows 95

SYMPTOMS

When you attempt to load the contents of an Lmhosts file into the NetBIOS Remote Cache Name Table using the Nbtstat -R command, you may notice that the entries are not loading. You can view this by using the Nbtstat -c command.

CAUSE

The Lmhosts file is very specific in its required syntax and may be incorrectly formatted.

RESOLUTION

To troubleshoot this issue, use the following:

  • Open the Lmhosts file in a text editor, such as Notepad.exe or Edit.com, and place three or four carriage returns at the bottom of the file.

    NOTE: If you are using Notepad.exe, then make certain that you do not save the file using Unicode.

  • Make sure the Lmhosts lookup is enabled by performing the following steps:

    1. Click Start, point to Settings, and click Control Panel.

    2. Double-click Networks, click the Protocols tab, and double-click

          the TCP/IP Protocol.
    

    3. Click the WINS Address tab and click the Enable LMHOSTS Lookup to

          enable it.
    

          NOTE: You will need to restart your computer for this change to take
          effect.
    
  • Verify that your Lmhosts file is in the proper folder and has no file extension. For more information, see the following article in the Microsoft Knowledge base:

          ARTICLE-ID: Q180094
    
          TITLE     : How to Write an LMHOSTS File for Domain Validation
    
Keywords          : ntnetserv NTSrvWkst nttcp win95 kbnetwork kbtshoot
Version           : WinNT:3.5,3.51,4.0;Windows:95
Platform          : WINDOWS
Issue type        : kbprb


================================================================================


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 19, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.