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.

98 lines
4.5 KiB

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