Regenerate docs
[kai/samba.git] / docs / manpages / lmhosts.5
1 .\" This manpage has been automatically generated by docbook2man 
2 .\" from a DocBook document.  This tool can be found at:
3 .\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> 
4 .\" Please send any bug reports, improvements, comments, patches, 
5 .\" etc. to Steve Cheng <steve@ggi-project.org>.
6 .TH "LMHOSTS" "5" "19 april 2003" "" ""
7
8 .SH NAME
9 lmhosts \- The Samba NetBIOS hosts file
10 .SH SYNOPSIS
11 .PP
12 \fIlmhosts\fR is the \fBSamba\fR(7) NetBIOS name to IP address mapping file.
13 .SH "DESCRIPTION"
14 .PP
15 This file is part of the \fBSamba\fR(7) suite.
16 .PP
17 \fIlmhosts\fR is the \fBSamba
18 \fR NetBIOS name to IP address mapping file.  It 
19 is very similar to the \fI/etc/hosts\fR file 
20 format, except that the hostname component must correspond 
21 to the NetBIOS naming format.
22 .SH "FILE FORMAT"
23 .PP
24 It is an ASCII file containing one line for NetBIOS name. 
25 The two fields on each line are separated from each other by 
26 white space. Any entry beginning with '#' is ignored. Each line 
27 in the lmhosts file contains the following information:
28 .TP 0.2i
29 \(bu
30 IP Address - in dotted decimal format.
31 .TP 0.2i
32 \(bu
33 NetBIOS Name - This name format is a 
34 maximum fifteen character host name, with an optional 
35 trailing '#' character followed by the NetBIOS name type 
36 as two hexadecimal digits.
37
38 If the trailing '#' is omitted then the given IP 
39 address will be returned for all names that match the given 
40 name, whatever the NetBIOS name type in the lookup.
41 .PP
42 An example follows:
43
44 .nf
45 #
46 # Sample Samba lmhosts file.
47 #
48 192.9.200.1     TESTPC
49 192.9.200.20    NTSERVER#20
50 192.9.200.21    SAMBASERVER
51         
52 .fi
53 .PP
54 Contains three IP to NetBIOS name mappings. The first 
55 and third will be returned for any queries for the names "TESTPC" 
56 and "SAMBASERVER" respectively, whatever the type component of 
57 the NetBIOS name requested.
58 .PP
59 The second mapping will be returned only when the "0x20" name 
60 type for a name "NTSERVER" is queried. Any other name type will not 
61 be resolved.
62 .PP
63 The default location of the \fIlmhosts\fR file 
64 is in the same directory as the \fBsmb.conf\fR(5) file.
65 .SH "VERSION"
66 .PP
67 This man page is correct for version 3.0 of the Samba suite.
68 .SH "SEE ALSO"
69 .PP
70 \fBsmbclient\fR(1), \fBsmb.conf\fR(5), and \fBsmbpasswd\fR(8)
71 .SH "AUTHOR"
72 .PP
73 The original Samba software and related utilities 
74 were created by Andrew Tridgell. Samba is now developed
75 by the Samba Team as an Open Source project similar 
76 to the way the Linux kernel is developed.
77 .PP
78 The original Samba man pages were written by Karl Auer. 
79 The man page sources were converted to YODL format (another 
80 excellent piece of Open Source software, available at
81 ftp://ftp.icce.rug.nl/pub/unix/ <URL:ftp://ftp.icce.rug.nl/pub/unix/>) and updated for the Samba 2.0 
82 release by Jeremy Allison.  The conversion to DocBook for 
83 Samba 2.2 was done by Gerald Carter. The conversion to DocBook
84 XML 4.2 was done by Alexander Bokovoy.