Create a basic LMHOST files on a Win XP Pro on a Domain

Posted on 2009-04-24
Last Modified: 2012-05-06
I have one XP Pro 64 system that when it loads its hanging at Applying Settings.
After about 2 min it goes on and is fine.

In the past to resolve this, I would edit the LMHost file adding in the address of the DNS server.
After booting once with the LMHOST setup, it didnt require it again. But did stop the hang issues.

Please, anyone who knows how to setup a very basic LMHOST file that just points DNS to my DNS server

Where do I place the file once modified (I have found the LMHOST.sam file and understand the .sam must be removed to make it work.

Does the file need to be copied from Windows\System32\drivers\etc to another folder like just the System32 folder

I see all kinds of how to write them, but need this to be very easy, just to help the system to resolve as boot so stops hanging.

Thank you
Question by:ACCTechnologies
    1 Comment
    LVL 38

    Accepted Solution

    The file just needs to be named LMHOSTS and placed in %systemroot%\system32\drivers\etc.
     There wouldn't be any point to putting your DNS server in it though; Windows addresses DNS servers by IP as they're specified in TCP/IP properties.  It doesn't have to resolve their NetBIOS names.
     You could try adding a domain controller to the file as a troubleshooting measure.  To do that you'd enter a line like this:     yourdc         #PRE #DOM:yourdomain

    Featured Post

    Shouldn't all users have the same email signature?

    You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

    Join & Write a Comment

    Have you considered what group policies are backwards and forwards compatible? Windows Active Directory servers and clients use group policy templates to deploy sets of policies within your domain. But, there is a catch to deploying policies. The…
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now