Q

What is the purpose of LMHOSTS?

Can you explain the basic details of LMHOSTS? I'm not sure why we need to use it. If you're currently using LMHOSTS

in your production network, it's because someone didn't want to take the trouble to set up a WINS server. LMHOSTS is a static table that resolves a host name to an IP address.

You can check to see if you have a WINS server configured in the TCP/IP settings of the machine. If so, you should not need an LMHOSTS unless someone is having a problem with getting a specific server registered. Some shops put the name and IP address of a domain controller in the LMHOSTS file of a dial-up machine to speed up authentication.

By running NBTSTAT -r (the r must be in lower case), you can see if your name requests are being resolved by broadcast or WINS. An LMHOSTS lookup will appear as a broadcast. NBTSTAT -c will show the contents of the name cache. This is loaded from the LMHOSTS file each time you boot.

This was first published in September 2001

Dig deeper on Windows Operating System Management

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close