Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
3.5 KiB

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