User:Aruntk89

--Aruntk89 (talk) 15:04, 21 January 2009 (UTC)ARUN TK --Aruntk89 (talk) 15:04, 21 January 2009 (UTC)

--Aruntk89 (talk) 15:04, 21 January 2009 (UTC)ARUN TK --Aruntk89 (talk) 15:04, 21 January 2009 (UTC)

LMHOSTS

Insert non-formatted text here


The LMHOSTS (LAN Manager Hosts) file is used to enable domain name resolution when other methods, e.g. WINS, fail.

The file, if it exists, is read as the LMHOSTS setting file. A sample file is provided during Windows installation. The sample file contains documentation for manually configuring the file. Contents [hide]

   * 1 File Locations
         o 1.1 Windows Millennium Edition
         o 1.2 Windows NT 4.0, Windows 2000, Windows XP, Vista and Windows Server 2003
               + 1.2.1 Default contents
   * 2 External links
   * 3 See also
File Locations
Windows Millennium Edition

The file located at %windir%\lmhosts, and a sample file is located at %windir%\lmhosts.sam. The %windir% is an environmental variable which can be output from a command prompt using "echo %windir%" (without the quotation marks). The default value of %windir% in Windows ME is "C:\Windows" (without the quotation marks).

Windows NT 4.0, Windows 2000, Windows XP, Vista and Windows Server 2003

The file is located at C:\WINDOWS\system32\drivers\etc\, and a sample file is located at C:\WINDOWS\system32\drivers\etc\lmhosts.sam. If a different install directory was used for the Windows files, the file can be located with the path %systemroot%\system32\drivers\etc\.

Default contents
  1. #PRE
  2. #DOM:<domain>
  3. #INCLUDE <filename>
  4. #BEGIN_ALTERNATE
  5. #END_ALTERNATE
  6. \0xnn (non-printing character support)
  7. Following any entry in the file with the characters "#PRE" will cause
  8. the entry to be preloaded into the name cache. By default, entries are
  9. not preloaded, but are parsed only after dynamic name resolution fails.
  10. Following an entry with the "#DOM:<domain>" tag will associate the
  11. entry with the domain specified by <domain>. This affects how the
  12. browser and logon services behave in TCP/IP environments. To preload
  13. the host name associated with #DOM entry, it is necessary to also add a
  14. #PRE to the line. The <domain> is always preloaded although it will not
  15. be shown when the name cache is viewed.
  16. Specifying "#INCLUDE <filename>" will force the RFC NetBIOS (NBT)
  17. software to seek the specified <filename> and parse it as if it were
  18. local. <filename> is generally a UNC-based name, allowing a
  19. centralized lmhosts file to be maintained on a server.
  20. It is ALWAYS necessary to provide a mapping for the IP address of the
  21. server prior to the #INCLUDE. This mapping must use the #PRE directive.
  22. In addition the share "public" in the example below must be in the
  23. LanManServer list of "NullSessionShares" in order for client machines to
  24. be able to read the lmhosts file successfully. This key is under
  25. \machine\system\currentcontrolset\services\lanmanserver\parameters\nullsessionshares
  26. in the registry. Simply add "public" to the list found there.
  27. The #BEGIN_ and #END_ALTERNATE keywords allow multiple #INCLUDE
  28. statements to be grouped together. Any single successful include
  29. will cause the group to succeed.
  30. Finally, non-printing characters can be embedded in mappings by
  31. first surrounding the NetBIOS name in quotations, then using the
  32. \0xnn notation to specify a hex value for a non-printing character.
  33. The following example illustrates all of these extensions:
  34. 102.54.94.97 rhino #PRE #DOM:networking #net group's DC
  35. 102.54.94.102 "appname \0x14" #special app server
  36. 102.54.94.123 popular #PRE #source server
  37. 102.54.94.117 localsrv #PRE #needed for the include
  38. #BEGIN_ALTERNATE
  39. #INCLUDE \\localsrv\public\lmhosts
  40. #INCLUDE \\rhino\public\lmhosts
  41. #END_ALTERNATE
  42. In the above example, the "appname" server contains a special
  43. character in its name, the "popular" and "localsrv" server names are
  44. preloaded, and the "rhino" server name is specified so it can be used
  45. to later #INCLUDE a centrally maintained lmhosts file if the "localsrv"
  46. system is unavailable.
  47. Note that the whole file is parsed including comments on each lookup,
  48. so keeping the number of comments to a minimum will improve performance.
  49. Therefore it is not advisable to simply add lmhosts file entries onto the
  50. end of this file.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.