1LMHOSTS(5) 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 con‐
22 tains 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 Net‐
28 BIOS 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 Net‐
32 BIOS name type in the lookup.
33
34 An example follows:
35
36
37
38
39 #
40 # Sample Samba lmhosts file.
41 #
42 192.9.200.1 TESTPC
43 192.9.200.20 NTSERVER#20
44 192.9.200.21 SAMBASERVER
45
46
47
48 Contains three IP to NetBIOS name mappings. The first and third will be
49 returned for any queries for the names "TESTPC" and "SAMBASERVER"
50 respectively, whatever the type component of the NetBIOS name
51 requested.
52
53 The second mapping will be returned only when the "0x20" name type for
54 a name "NTSERVER" is queried. Any other name type will not be resolved.
55
56 The default location of the lmhosts file is in the same directory as
57 the smb.conf(5) file.
58
60 lmhosts is loaded from the configuration directory. This is usually
61 /etc/samba or /usr/local/samba/lib.
62
64 This man page is correct for version 3.0 of the Samba suite.
65
67 smbclient(1), smb.conf(5), and smbpasswd(8)
68
70 The original Samba software and related utilities were created by
71 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
72 Source project similar to the way the Linux kernel is developed.
73
74 The original Samba man pages were written by Karl Auer. The man page
75 sources were converted to YODL format (another excellent piece of Open
76 Source software, available at ftp://ftp.icce.rug.nl/pub/unix/) and
77 updated for the Samba 2.0 release by Jeremy Allison. The conversion to
78 DocBook for Samba 2.2 was done by Gerald Carter. The conversion to Doc‐
79 Book XML 4.2 was done by Alexander Bokovoy.
80
81
82
83
84 LMHOSTS(5)