summaryrefslogtreecommitdiff
path: root/docs/htmldocs/lmhosts.5.html
blob: ece68eb5114a9e5c0c89c28273dda59794e7694c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94





<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>