1 .TH LMHOSTS 5 "28 Feb 1999" "lmhosts 2.0.3"
4 lmhosts \- The Samba NetBIOS hosts file
8 lmhosts is the \fBSamba\fP NetBIOS name to IP address mapping file\&.
12 This file is part of the \fBSamba\fP suite\&.
14 \fBlmhosts\fP is the \fBSamba\fP NetBIOS name to IP address mapping file\&. It
15 is very similar to the \fB/etc/hosts\fP file format, except that the
16 hostname component must correspond to the NetBIOS naming format\&.
20 It is an ASCII file containing one line for NetBIOS name\&. The two
21 fields on each line are separated from each other by white space\&. Any
22 entry beginning with # is ignored\&. Each line in the lmhosts file
23 contains the following information :
27 \fBIP Address\fP - in dotted decimal format\&.
30 \fBNetBIOS Name\fP - This name format is a maximum fifteen
31 character host name, with an optional trailing \f(CW\'#\'\fP character
32 followed by the NetBIOS name type as two hexadecimal digits\&.
34 If the trailing \f(CW\'#\'\fP is omitted then the given IP address will be
35 returned for all names that match the given name, whatever the NetBIOS
36 name type in the lookup\&.
43 # Sample Samba lmhosts file\&.
47 192\&.9\&.200\&.1 TESTPC
49 192\&.9\&.200\&.20 NTSERVER#20
51 192\&.9\&.200\&.21 SAMBASERVER
54 Contains three IP to NetBIOS name mappings\&. The first and third will
55 be returned for any queries for the names \f(CW"TESTPC"\fP and
56 \f(CW"SAMBASERVER"\fP respectively, whatever the type component of the
57 NetBIOS name requested\&.
59 The second mapping will be returned only when the \f(CW"0x20"\fP name type
60 for a name \f(CW"NTSERVER"\fP is queried\&. Any other name type will not be
63 The default location of the \fBlmhosts\fP file is in the same directory
64 as the \fBsmb\&.conf\fP file\&.
68 This man page is correct for version 2\&.0 of the Samba suite\&.
74 \fBsmbpasswd (8)\fP, \fBsamba (7)\fP\&.
78 The original Samba software and related utilities were created by
79 Andrew Tridgell \fIsamba-bugs@samba\&.org\fP\&. Samba is now developed
80 by the Samba Team as an Open Source project similar to the way the
81 Linux kernel is developed\&.
83 The original Samba man pages were written by Karl Auer\&. The man page
84 sources were converted to YODL format (another excellent piece of Open
85 Source software, available at
86 \fBftp://ftp\&.icce\&.rug\&.nl/pub/unix/\fP)
87 and updated for the Samba2\&.0 release by Jeremy Allison\&.
88 \fIsamba-bugs@samba\&.org\fP\&.
90 See \fBsamba (7)\fP to find out how to get a full
91 list of contributors and details on how to submit bug reports,