1LMHOSTS(5) File Formats and Conventions LMHOSTS(5)
2
3
4
6 lmhosts - The Samba NetBIOS hosts file
7
9 lmhosts is the samba(7) NetBIOS name to IP address mapping file.
10
12 This file is part of the samba(7) suite.
13
14 lmhosts is the Samba NetBIOS name to IP address mapping file. It is
15 very similar to the /etc/hosts file format, except that the hostname
16 component must correspond to the NetBIOS naming format.
17
19 It is an ASCII file containing one line for NetBIOS name. The two
20 fields on each line are separated from each other by white space. Any
21 entry beginning with ´#´ is ignored. Each line in the lmhosts file
22 contains the following information:
23
24 · IP Address - in dotted decimal format.
25
26 · NetBIOS Name - This name format is a maximum fifteen character host
27 name, with an optional trailing ´#´ character followed by the
28 NetBIOS name type as two hexadecimal digits.
29
30 If the trailing ´#´ is omitted then the given IP address will be
31 returned for all names that match the given name, whatever the
32 NetBIOS name type in the lookup.
33
34
35 An example follows:
36
37 #
38 # Sample Samba lmhosts file.
39 #
40 192.9.200.1 TESTPC
41 192.9.200.20 NTSERVER#20
42 192.9.200.21 SAMBASERVER
43
44 Contains three IP to NetBIOS name mappings. The first and third will be
45 returned for any queries for the names "TESTPC" and "SAMBASERVER"
46 respectively, whatever the type component of the NetBIOS name
47 requested.
48
49 The second mapping will be returned only when the "0x20" name type for
50 a name "NTSERVER" is queried. Any other name type will not be resolved.
51
52 The default location of the lmhosts file is in the same directory as
53 the smb.conf(5) file.
54
56 lmhosts is loaded from the configuration directory. This is usually
57 /etc/samba or /usr/local/samba/lib.
58
60 This man page is correct for version 3 of the Samba suite.
61
63 smbclient(1), smb.conf(5), and smbpasswd(8)
64
66 The original Samba software and related utilities were created by
67 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
68 Source project similar to the way the Linux kernel is developed.
69
70 The original Samba man pages were written by Karl Auer. The man page
71 sources were converted to YODL format (another excellent piece of Open
72 Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and
73 updated for the Samba 2.0 release by Jeremy Allison. The conversion to
74 DocBook for Samba 2.2 was done by Gerald Carter. The conversion to
75 DocBook XML 4.2 was done by Alexander Bokovoy.
76
77
78
79Samba 3.5 08/02/2011 LMHOSTS(5)