source: vendor/3.6.0/docs/manpages/lmhosts.5

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

Samba Server: update vendor to 3.6.0

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: 08/08/2011
6.\" Manual: File Formats and Conventions
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "LMHOSTS" "5" "08/08/2011" "Samba 3\&.6" "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.RE
68.sp
69.RE
70.PP
71An example follows:
72.sp
73.if n \{\
74.RS 4
75.\}
76.nf
77#
78# Sample Samba lmhosts file\&.
79#
80192\&.9\&.200\&.1 TESTPC
81192\&.9\&.200\&.20 NTSERVER#20
82192\&.9\&.200\&.21 SAMBASERVER
83.fi
84.if n \{\
85.RE
86.\}
87.PP
88Contains 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\&.
89.PP
90The 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\&.
91.PP
92The default location of the
93lmhosts
94file is in the same directory as the
95\fBsmb.conf\fR(5)
96file\&.
97.SH "FILES"
98.PP
99lmhosts is loaded from the configuration directory\&. This is usually
100/etc/samba
101or
102/usr/local/samba/lib\&.
103.SH "VERSION"
104.PP
105This man page is correct for version 3 of the Samba suite\&.
106.SH "SEE ALSO"
107.PP
108\fBsmbclient\fR(1),
109\fBsmb.conf\fR(5), and
110\fBsmbpasswd\fR(8)
111.SH "AUTHOR"
112.PP
113The 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\&.
114.PP
115The 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
116ftp://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.