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

Last change on this file was 989, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.7

File size: 4.0 KB
Line 
1'\" t
2.\" Title: lmhosts
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5.\" Date: 10/25/2016
6.\" Manual: File Formats and Conventions
7.\" Source: Samba 4.4
8.\" Language: English
9.\"
10.TH "LMHOSTS" "5" "10/25/2016" "Samba 4\&.4" "File Formats and Conventions"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31lmhosts \- The Samba NetBIOS hosts file
32.SH "SYNOPSIS"
33.PP
34lmhosts
35is the
36\fBsamba\fR(7)
37NetBIOS name to IP address mapping file\&.
38.SH "DESCRIPTION"
39.PP
40This file is part of the
41\fBsamba\fR(7)
42suite\&.
43.PP
44lmhosts
45is the
46\fISamba \fR
47NetBIOS name to IP address mapping file\&. It is very similar to the
48/etc/hosts
49file format, except that the hostname component must correspond to the NetBIOS naming format\&.
50.SH "FILE FORMAT"
51.PP
52It 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 \*(Aq#\*(Aq is ignored\&. Each line in the lmhosts file contains the following information:
53.sp
54.RS 4
55.ie n \{\
56\h'-04'\(bu\h'+03'\c
57.\}
58.el \{\
59.sp -1
60.IP \(bu 2.3
61.\}
62IP Address \- in dotted decimal format\&.
63.RE
64.sp
65.RS 4
66.ie n \{\
67\h'-04'\(bu\h'+03'\c
68.\}
69.el \{\
70.sp -1
71.IP \(bu 2.3
72.\}
73NetBIOS Name \- This name format is a maximum fifteen character host name, with an optional trailing \*(Aq#\*(Aq character followed by the NetBIOS name type as two hexadecimal digits\&.
74.sp
75If the trailing \*(Aq#\*(Aq 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\&.
76.RE
77.sp
78.RE
79.PP
80An example follows:
81.sp
82.if n \{\
83.RS 4
84.\}
85.nf
86#
87# Sample Samba lmhosts file\&.
88#
89192\&.9\&.200\&.1 TESTPC
90192\&.9\&.200\&.20 NTSERVER#20
91192\&.9\&.200\&.21 SAMBASERVER
92.fi
93.if n \{\
94.RE
95.\}
96.PP
97Contains 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\&.
98.PP
99The 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\&.
100.PP
101The default location of the
102lmhosts
103file is in the same directory as the
104\fBsmb.conf\fR(5)
105file\&.
106.SH "FILES"
107.PP
108lmhosts is loaded from the configuration directory\&. This is usually
109/etc/samba
110or
111/usr/local/samba/lib\&.
112.SH "VERSION"
113.PP
114This man page is correct for version 3 of the Samba suite\&.
115.SH "SEE ALSO"
116.PP
117\fBsmbclient\fR(1),
118\fBsmb.conf\fR(5), and
119\fBsmbpasswd\fR(8)
120.SH "AUTHOR"
121.PP
122The 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\&.
123.PP
124The 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
125ftp://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.