Question about HOSTS and LMHOSTS files

Sharky Forums


Results 1 to 4 of 4

Thread: Question about HOSTS and LMHOSTS files

  1. #1
    Reef Shark
    Join Date
    Mar 2003
    Posts
    494

    Question about HOSTS and LMHOSTS files

    Quick question.

    Is the HOSTS file related to DNS names and the LMHOSTS file related to WINS?

    Also, if I were to delete my HOSTS or LMHOSTS file, do these files automatically "recreate" themselves?

    Thanks.
    Last edited by Apheleon; 08-26-2003 at 03:46 PM.

  2. #2
    There is no spoon. BloodRed's Avatar
    Join Date
    Sep 2000
    Location
    Las Vegas NV
    Posts
    5,434
    You're right. The HOSTS file is used to manually map friendly names on non-NetBIOS networks, the LMHOSTS file is used to map NetBIOS names.

    I don't know if you can just delete them, but why would you?
    -BR

    There are 10 types of people in the world, those who understand binary and those who don't.

  3. #3
    Crash Test Dummy SkyDog's Avatar
    Join Date
    Oct 2000
    Location
    Upstate New York
    Posts
    12,183
    They don't automatically regenerate if you delete them. By default, you don't even have an LMHOSTS file -- you just have the sample LMHOSTS.SAM. If you wanted to manually recreate the contents of Windows' default HOSTS file, you'd only need one line:

    Code:
    127.0.0.1       localhost
    (All the other text in the default HOSTS file is comment/example.)

  4. #4
    Reef Shark
    Join Date
    Mar 2003
    Posts
    494
    Thanks guys.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •