[862] | 1 | '\" t
|
---|
| 2 | .\" Title: lmhosts
|
---|
| 3 | .\" Author: [see the "AUTHOR" section]
|
---|
| 4 | .\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
|
---|
| 5 | .\" Date: 09/18/2013
|
---|
| 6 | .\" Manual: File Formats and Conventions
|
---|
| 7 | .\" Source: Samba 3.6
|
---|
| 8 | .\" Language: English
|
---|
| 9 | .\"
|
---|
| 10 | .TH "LMHOSTS" "5" "09/18/2013" "Samba 3\&.6" "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"
|
---|
| 31 | lmhosts \- The Samba NetBIOS hosts file
|
---|
| 32 | .SH "SYNOPSIS"
|
---|
| 33 | .PP
|
---|
| 34 | lmhosts
|
---|
| 35 | is the
|
---|
| 36 | \fBsamba\fR(7)
|
---|
| 37 | NetBIOS name to IP address mapping file\&.
|
---|
| 38 | .SH "DESCRIPTION"
|
---|
| 39 | .PP
|
---|
| 40 | This file is part of the
|
---|
| 41 | \fBsamba\fR(7)
|
---|
| 42 | suite\&.
|
---|
| 43 | .PP
|
---|
| 44 | lmhosts
|
---|
| 45 | is the
|
---|
| 46 | \fISamba \fR
|
---|
| 47 | NetBIOS name to IP address mapping file\&. It is very similar to the
|
---|
| 48 | /etc/hosts
|
---|
| 49 | file format, except that the hostname component must correspond to the NetBIOS naming format\&.
|
---|
| 50 | .SH "FILE FORMAT"
|
---|
| 51 | .PP
|
---|
| 52 | 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 \*(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 | .\}
|
---|
| 62 | IP 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 | .\}
|
---|
| 73 | NetBIOS 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
|
---|
| 75 | If 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
|
---|
| 80 | An example follows:
|
---|
| 81 | .sp
|
---|
| 82 | .if n \{\
|
---|
| 83 | .RS 4
|
---|
| 84 | .\}
|
---|
| 85 | .nf
|
---|
| 86 | #
|
---|
| 87 | # Sample Samba lmhosts file\&.
|
---|
| 88 | #
|
---|
| 89 | 192\&.9\&.200\&.1 TESTPC
|
---|
| 90 | 192\&.9\&.200\&.20 NTSERVER#20
|
---|
| 91 | 192\&.9\&.200\&.21 SAMBASERVER
|
---|
| 92 | .fi
|
---|
| 93 | .if n \{\
|
---|
| 94 | .RE
|
---|
| 95 | .\}
|
---|
| 96 | .PP
|
---|
| 97 | 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\&.
|
---|
| 98 | .PP
|
---|
| 99 | 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\&.
|
---|
| 100 | .PP
|
---|
| 101 | The default location of the
|
---|
| 102 | lmhosts
|
---|
| 103 | file is in the same directory as the
|
---|
| 104 | \fBsmb.conf\fR(5)
|
---|
| 105 | file\&.
|
---|
| 106 | .SH "FILES"
|
---|
| 107 | .PP
|
---|
| 108 | lmhosts is loaded from the configuration directory\&. This is usually
|
---|
| 109 | /etc/samba
|
---|
| 110 | or
|
---|
| 111 | /usr/local/samba/lib\&.
|
---|
| 112 | .SH "VERSION"
|
---|
| 113 | .PP
|
---|
| 114 | This 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
|
---|
| 122 | 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\&.
|
---|
| 123 | .PP
|
---|
| 124 | 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
|
---|
| 125 | 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\&.
|
---|