source: trunk-3.0/docs/manpages/lmhosts.5@ 101

Last change on this file since 101 was 44, checked in by Paul Smedley, 18 years ago

Update source to 3.0.25b

File size: 2.9 KB
Line 
1.\"Generated by db2man.xsl. Don't modify this, modify the source.
2.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
20.TH "LMHOSTS" 5 "" "" ""
21.SH "NAME"
22lmhosts - The Samba NetBIOS hosts file
23.SH "SYNOPSIS"
24.PP
25\fIlmhosts\fR
26is the
27\fBsamba\fR(7)
28NetBIOS name to IP address mapping file.
29.SH "DESCRIPTION"
30.PP
31This file is part of the
32\fBsamba\fR(7)
33suite.
34.PP
35\fIlmhosts\fR
36is the
37\fBSamba \fR
38NetBIOS name to IP address mapping file. It is very similar to the
39\fI/etc/hosts\fR
40file format, except that the hostname component must correspond to the NetBIOS naming format.
41.SH "FILE FORMAT"
42.PP
43It is an ASCII file containing one line for NetBIOS name. The two fields on each line are separated from each other by white space. Any entry beginning with '#' is ignored. Each line in the lmhosts file contains the following information:
44.TP 3n
45\(bu
46IP Address - in dotted decimal format.
47.TP 3n
48\(bu
49NetBIOS Name - This name format is a maximum fifteen character host name, with an optional trailing '#' character followed by the NetBIOS name type as two hexadecimal digits.
50.sp
51If the trailing '#' is omitted then the given IP address will be returned for all names that match the given name, whatever the NetBIOS name type in the lookup.
52.PP
53An example follows:
54
55.sp
56
57.nf
58
59#
60# Sample Samba lmhosts file.
61#
62192.9.200.1 TESTPC
63192.9.200.20 NTSERVER#20
64192.9.200.21 SAMBASERVER
65
66.fi
67
68.PP
69Contains three IP to NetBIOS name mappings. The first and third will be returned for any queries for the names "TESTPC" and "SAMBASERVER" respectively, whatever the type component of the NetBIOS name requested.
70.PP
71The second mapping will be returned only when the "0x20" name type for a name "NTSERVER" is queried. Any other name type will not be resolved.
72.PP
73The default location of the
74\fIlmhosts\fR
75file is in the same directory as the
76\fBsmb.conf\fR(5)
77file.
78.SH "FILES"
79.PP
80lmhosts is loaded from the configuration directory. This is usually
81\fI/etc/samba\fR
82or
83\fI/usr/local/samba/lib\fR.
84.SH "VERSION"
85.PP
86This man page is correct for version 3.0 of the Samba suite.
87.SH "SEE ALSO"
88.PP
89\fBsmbclient\fR(1),
90\fBsmb.conf\fR(5), and
91\fBsmbpasswd\fR(8)
92.SH "AUTHOR"
93.PP
94The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.
95.PP
96The original Samba man pages were written by Karl Auer. The man page sources were converted to YODL format (another excellent piece of Open Source software, available at
97ftp://ftp.icce.rug.nl/pub/unix/) and updated for the Samba 2.0 release by Jeremy Allison. The conversion to DocBook for Samba 2.2 was done by Gerald Carter. The conversion to DocBook XML 4.2 was done by Alexander Bokovoy.
98
Note: See TracBrowser for help on using the repository browser.