mirror of
https://github.com/samba-team/samba.git
synced 2025-01-25 06:04:04 +03:00
f120a81a72
(This used to be commit 42d2509c9fab5c774fd33b9d4b5bd1ee125479c3)
95 lines
3.6 KiB
HTML
95 lines
3.6 KiB
HTML
|
|
|
|
|
|
|
|
|
|
<html><head><title>lmhosts (5)</title>
|
|
|
|
<link rev="made" href="mailto:samba-bugs@samba.org">
|
|
</head>
|
|
<body>
|
|
|
|
<hr>
|
|
|
|
<h1>lmhosts (5)</h1>
|
|
<h2>Samba</h2>
|
|
<h2>23 Oct 1998</h2>
|
|
|
|
|
|
|
|
|
|
<p><br><a name="NAME"></a>
|
|
<h2>NAME</h2>
|
|
lmhosts - The Samba NetBIOS hosts file
|
|
<p><br><a name="SYNOPSIS"></a>
|
|
<h2>SYNOPSIS</h2>
|
|
|
|
<p><br>lmhosts is the <strong>Samba</strong> NetBIOS name to IP address mapping file.
|
|
<p><br><a name="DESCRIPTION"></a>
|
|
<h2>DESCRIPTION</h2>
|
|
|
|
<p><br>This file is part of the <strong>Samba</strong> suite.
|
|
<p><br><strong>lmhosts</strong> is the <strong>Samba</strong> NetBIOS name to IP address mapping file. It
|
|
is very similar to the <strong>/etc/hosts</strong> file format, except that the
|
|
hostname component must correspond to the NetBIOS naming format.
|
|
<p><br><a name="FILEFORMAT"></a>
|
|
<h2>FILE FORMAT</h2>
|
|
|
|
<p><br>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 :
|
|
<p><br><ul>
|
|
<p><br><li > <strong>IP Address</strong> - in dotted decimal format.
|
|
<p><br><li > <strong>NetBIOS Name</strong> - This name format is a maximum fifteen
|
|
character host name, with an optional trailing <code>'#'</code> character
|
|
followed by the NetBIOS name type as two hexadecimal digits.
|
|
<p><br>If the trailing <code>'#'</code> 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.
|
|
<p><br></ul>
|
|
<p><br>An example follows :
|
|
<p><br># <br>
|
|
# Sample Samba lmhosts file. <br>
|
|
# <br>
|
|
192.9.200.1 TESTPC <br>
|
|
192.9.200.20 NTSERVER#20 <br>
|
|
192.9.200.21 SAMBASERVER <br>
|
|
<p><br>Contains three IP to NetBIOS name mappings. The first and third will
|
|
be returned for any queries for the names <code>"TESTPC"</code> and
|
|
<code>"SAMBASERVER"</code> respectively, whatever the type component of the
|
|
NetBIOS name requested.
|
|
<p><br>The second mapping will be returned only when the <code>"0x20"</code> name type
|
|
for a name <code>"NTSERVER"</code> is queried. Any other name type will not be
|
|
resolved.
|
|
<p><br>The default location of the <strong>lmhosts</strong> file is in the same directory
|
|
as the <a href="smb.conf.html"><strong>smb.conf</strong></a> file.
|
|
<p><br><a name="VERSION"></a>
|
|
<h2>VERSION</h2>
|
|
|
|
<p><br>This man page is correct for version 2.0 of the Samba suite.
|
|
<p><br><a name="SEEALSO"></a>
|
|
<h2>SEE ALSO</h2>
|
|
|
|
<p><br><a href="smb.conf.5.html#nameresolveorder"><strong>smb.conf (5)</strong></a>,
|
|
<a href="smbclient.1.html#minusR"><strong>smbclient (1)</strong></a>,
|
|
<a href="smbpasswd.8.html#minusR"><strong>smbpasswd (8)</strong></a>, <a href="samba.7.html"><strong>samba (7)</strong></a>.
|
|
<p><br><a name="AUTHOR"></a>
|
|
<h2>AUTHOR</h2>
|
|
|
|
<p><br>The original Samba software and related utilities were created by
|
|
Andrew Tridgell <a href="mailto:samba-bugs@samba.org"><em>samba-bugs@samba.org</em></a>. Samba is now developed
|
|
by the Samba Team as an Open Source project similar to the way the
|
|
Linux kernel is developed.
|
|
<p><br>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
|
|
<a href="ftp://ftp.icce.rug.nl/pub/unix/"><strong>ftp://ftp.icce.rug.nl/pub/unix/</strong></a>)
|
|
and updated for the Samba2.0 release by Jeremy Allison.
|
|
<a href="mailto:samba-bugs@samba.org"><em>samba-bugs@samba.org</em></a>.
|
|
<p><br>See <a href="samba.7.html"><strong>samba (7)</strong></a> to find out how to get a full
|
|
list of contributors and details on how to submit bug reports,
|
|
comments etc.
|
|
</body>
|
|
</html>
|