source: branches/samba-3.5.x/docs/manpages/lmhosts.5@ 734

Last change on this file since 734 was 734, checked in by Silvan Scherrer, 13 years ago

Samba Server 3.5: update branche to 3.5.14

File size: 3.6 KB
Line 
1'\" t
2.\" Title: lmhosts
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 03/09/2012
6.\" Manual: File Formats and Conventions
7.\" Source: Samba 3.5
8.\" Language: English
9.\"
10.TH "LMHOSTS" "5" "03/09/2012" "Samba 3\&.5" "File Formats and Conventions"
11.\" -----------------------------------------------------------------
12.\" * set default formatting
13.\" -----------------------------------------------------------------
14.\" disable hyphenation
15.nh
16.\" disable justification (adjust text to left margin only)
17.ad l
18.\" -----------------------------------------------------------------
19.\" * MAIN CONTENT STARTS HERE *
20.\" -----------------------------------------------------------------
21.SH "NAME"
22lmhosts \- The Samba NetBIOS hosts file
23.SH "SYNOPSIS"
24.PP
25lmhosts
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
35lmhosts
36is the
37\fISamba \fR
38NetBIOS name to IP address mapping file\&. It is very similar to the
39/etc/hosts
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.sp
45.RS 4
46.ie n \{\
47\h'-04'\(bu\h'+03'\c
48.\}
49.el \{\
50.sp -1
51.IP \(bu 2.3
52.\}
53IP Address \- in dotted decimal format\&.
54.RE
55.sp
56.RS 4
57.ie n \{\
58\h'-04'\(bu\h'+03'\c
59.\}
60.el \{\
61.sp -1
62.IP \(bu 2.3
63.\}
64NetBIOS 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\&.
65.sp
66If 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\&.
67.sp
68.RE
69.PP
70An example follows:
71.sp
72.if n \{\
73.RS 4
74.\}
75.nf
76#
77# Sample Samba lmhosts file\&.
78#
79192\&.9\&.200\&.1 TESTPC
80192\&.9\&.200\&.20 NTSERVER#20
81192\&.9\&.200\&.21 SAMBASERVER
82.fi
83.if n \{\
84.RE
85.\}
86.PP
87Contains 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\&.
88.PP
89The 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\&.
90.PP
91The default location of the
92lmhosts
93file is in the same directory as the
94\fBsmb.conf\fR(5)
95file\&.
96.SH "FILES"
97.PP
98lmhosts is loaded from the configuration directory\&. This is usually
99/etc/samba
100or
101/usr/local/samba/lib\&.
102.SH "VERSION"
103.PP
104This man page is correct for version 3 of the Samba suite\&.
105.SH "SEE ALSO"
106.PP
107\fBsmbclient\fR(1),
108\fBsmb.conf\fR(5), and
109\fBsmbpasswd\fR(8)
110.SH "AUTHOR"
111.PP
112The 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\&.
113.PP
114The 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
115ftp://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.