source: branches/samba-3.0/docs/manpages/lmhosts.5@ 158

Last change on this file since 158 was 158, checked in by Paul Smedley, 17 years ago

Update source to 3.0.32

File size: 3.1 KB
Line 
1.\" Title: lmhosts
2.\" Author:
3.\" Generator: DocBook XSL Stylesheets v1.73.2 <http://docbook.sf.net/>
4.\" Date: 08/25/2008
5.\" Manual: File Formats and Conventions
6.\" Source: Samba 3.0
7.\"
8.TH "LMHOSTS" "5" "08/25/2008" "Samba 3\.0" "File Formats and Conventions"
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14lmhosts - The Samba NetBIOS hosts file
15.SH "SYNOPSIS"
16.PP
17\fIlmhosts\fR
18is the
19\fBsamba\fR(7)
20NetBIOS name to IP address mapping file\.
21.SH "DESCRIPTION"
22.PP
23This file is part of the
24\fBsamba\fR(7)
25suite\.
26.PP
27\fIlmhosts\fR
28is the
29\fISamba \fR
30NetBIOS name to IP address mapping file\. It is very similar to the
31\fI/etc/hosts\fR
32file format, except that the hostname component must correspond to the NetBIOS naming format\.
33.SH "FILE FORMAT"
34.PP
35It 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:
36.sp
37.RS 4
38.ie n \{\
39\h'-04'\(bu\h'+03'\c
40.\}
41.el \{\
42.sp -1
43.IP \(bu 2.3
44.\}
45IP Address \- in dotted decimal format\.
46.RE
47.sp
48.RS 4
49.ie n \{\
50\h'-04'\(bu\h'+03'\c
51.\}
52.el \{\
53.sp -1
54.IP \(bu 2.3
55.\}
56NetBIOS 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\.
57.sp
58If 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\.
59.sp
60.RE
61.PP
62An example follows:
63.sp
64.RS 4
65.nf
66#
67# Sample Samba lmhosts file\.
68#
69192\.9\.200\.1 TESTPC
70192\.9\.200\.20 NTSERVER#20
71192\.9\.200\.21 SAMBASERVER
72.fi
73.RE
74.PP
75Contains 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\.
76.PP
77The 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\.
78.PP
79The default location of the
80\fIlmhosts\fR
81file is in the same directory as the
82\fBsmb.conf\fR(5)
83file\.
84.SH "FILES"
85.PP
86lmhosts is loaded from the configuration directory\. This is usually
87\fI/etc/samba\fR
88or
89\fI/usr/local/samba/lib\fR\.
90.SH "VERSION"
91.PP
92This man page is correct for version 3\.0 of the Samba suite\.
93.SH "SEE ALSO"
94.PP
95\fBsmbclient\fR(1),
96\fBsmb.conf\fR(5), and
97\fBsmbpasswd\fR(8)
98.SH "AUTHOR"
99.PP
100The 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\.
101.PP
102The 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
103ftp://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\.
Note: See TracBrowser for help on using the repository browser.