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: 10/24/2011
|
---|
6 | .\" Manual: File Formats and Conventions
|
---|
7 | .\" Source: Samba 3.5
|
---|
8 | .\" Language: English
|
---|
9 | .\"
|
---|
10 | .TH "LMHOSTS" "5" "10/24/2011" "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"
|
---|
22 | lmhosts \- The Samba NetBIOS hosts file
|
---|
23 | .SH "SYNOPSIS"
|
---|
24 | .PP
|
---|
25 | lmhosts
|
---|
26 | is the
|
---|
27 | \fBsamba\fR(7)
|
---|
28 | NetBIOS name to IP address mapping file\&.
|
---|
29 | .SH "DESCRIPTION"
|
---|
30 | .PP
|
---|
31 | This file is part of the
|
---|
32 | \fBsamba\fR(7)
|
---|
33 | suite\&.
|
---|
34 | .PP
|
---|
35 | lmhosts
|
---|
36 | is the
|
---|
37 | \fISamba \fR
|
---|
38 | NetBIOS name to IP address mapping file\&. It is very similar to the
|
---|
39 | /etc/hosts
|
---|
40 | file format, except that the hostname component must correspond to the NetBIOS naming format\&.
|
---|
41 | .SH "FILE FORMAT"
|
---|
42 | .PP
|
---|
43 | It 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 | .\}
|
---|
53 | IP 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 | .\}
|
---|
64 | NetBIOS 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
|
---|
66 | If 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
|
---|
70 | An example follows:
|
---|
71 | .sp
|
---|
72 | .if n \{\
|
---|
73 | .RS 4
|
---|
74 | .\}
|
---|
75 | .nf
|
---|
76 | #
|
---|
77 | # Sample Samba lmhosts file\&.
|
---|
78 | #
|
---|
79 | 192\&.9\&.200\&.1 TESTPC
|
---|
80 | 192\&.9\&.200\&.20 NTSERVER#20
|
---|
81 | 192\&.9\&.200\&.21 SAMBASERVER
|
---|
82 | .fi
|
---|
83 | .if n \{\
|
---|
84 | .RE
|
---|
85 | .\}
|
---|
86 | .PP
|
---|
87 | Contains 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
|
---|
89 | The 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
|
---|
91 | The default location of the
|
---|
92 | lmhosts
|
---|
93 | file is in the same directory as the
|
---|
94 | \fBsmb.conf\fR(5)
|
---|
95 | file\&.
|
---|
96 | .SH "FILES"
|
---|
97 | .PP
|
---|
98 | lmhosts is loaded from the configuration directory\&. This is usually
|
---|
99 | /etc/samba
|
---|
100 | or
|
---|
101 | /usr/local/samba/lib\&.
|
---|
102 | .SH "VERSION"
|
---|
103 | .PP
|
---|
104 | This 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
|
---|
112 | The 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
|
---|
114 | The 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
|
---|
115 | ftp://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\&.
|
---|