d3ffedaff60cf936e177461392e098f0d1d709d9
[samba.git] / docs / htmldocs / lmhosts.5.html
1
2
3
4
5
6 <html><head><title>lmhosts (5)</title>
7
8 <link rev="made" href="mailto:samba-bugs@samba.anu.edu.au">
9 </head>
10 <body>
11
12 <hr>
13
14 <h1>lmhosts (5)</h1>
15 <h2>Samba</h2>
16 <h2>23 Oct 1998</h2>
17
18     
19
20     
21 <p><br><a name="NAME"></a>
22 <h2>NAME</h2>
23     lmhosts - The Samba NetBIOS hosts file
24 <p><br><a name="SYNOPSIS"></a>
25 <h2>SYNOPSIS</h2>
26      
27 <p><br>lmhosts is the <strong>Samba</strong> NetBIOS name to IP address mapping file.
28 <p><br><a name="DESCRIPTION"></a>
29 <h2>DESCRIPTION</h2>
30     
31 <p><br>This file is part of the <strong>Samba</strong> suite.
32 <p><br><strong>lmhosts</strong> is the <strong>Samba</strong> NetBIOS name to IP address mapping file.  It
33 is very similar to the <strong>/etc/hosts</strong> file format, except that the
34 hostname component must correspond to the NetBIOS naming format.
35 <p><br><a name="FILEFORMAT"></a>
36 <h2>FILE FORMAT</h2>
37     
38 <p><br>It is an ASCII file containing one line for NetBIOS name. The two
39 fields on each line are separated from each other by white space. Any
40 entry beginning with # is ignored. Each line in the lmhosts file
41 contains the following information :
42 <p><br><ul>
43 <p><br><li > <strong>IP Address</strong> - in dotted decimal format.
44 <p><br><li > <strong>NetBIOS Name</strong> - This name format is a maximum fifteen
45 character host name, with an optional trailing <code>'#'</code> character
46 followed by the NetBIOS name type as two hexadecimal digits.
47 <p><br>If the trailing <code>'#'</code> is omitted then the given IP address will be
48 returned for all names that match the given name, whatever the NetBIOS
49 name type in the lookup.
50 <p><br></ul>
51 <p><br>An example follows :
52 <p><br># <br>
53 # Sample Samba lmhosts file. <br>
54 # <br>
55 192.9.200.1     TESTPC <br>
56 192.9.200.20    NTSERVER#20 <br>
57 192.9.200.21    SAMBASERVER <br>
58 <p><br>Contains three IP to NetBIOS name mappings. The first and third will
59 be returned for any queries for the names <code>"TESTPC"</code> and
60 <code>"SAMBASERVER"</code> respectively, whatever the type component of the
61 NetBIOS name requested.
62 <p><br>The second mapping will be returned only when the <code>"0x20"</code> name type
63 for a name <code>"NTSERVER"</code> is queried. Any other name type will not be
64 resolved.
65 <p><br>The default location of the <strong>lmhosts</strong> file is in the same directory
66 as the <a href="smb.conf.html"><strong>smb.conf</strong></a> file.
67 <p><br><a name="VERSION"></a>
68 <h2>VERSION</h2>
69     
70 <p><br>This man page is correct for version 2.0 of the Samba suite.
71 <p><br><a name="SEEALSO"></a>
72 <h2>SEE ALSO</h2>
73     
74 <p><br><a href="smb.conf.5.html#nameresolveorder"><strong>smb.conf (5)</strong></a>,
75 <a href="smbclient.1.html#minusR"><strong>smbclient (1)</strong></a>,
76 <a href="smbpasswd.8.html#minusR"><strong>smbpasswd (8)</strong></a>, <a href="samba.7.html"><strong>samba (7)</strong></a>.
77 <p><br><a name="AUTHOR"></a>
78 <h2>AUTHOR</h2>
79     
80 <p><br>The original Samba software and related utilities were created by
81 Andrew Tridgell <a href="mailto:samba-bugs@samba.anu.edu.au"><em>samba-bugs@samba.anu.edu.au</em></a>. Samba is now developed
82 by the Samba Team as an Open Source project similar to the way the
83 Linux kernel is developed.
84 <p><br>The original Samba man pages were written by Karl Auer. The man page
85 sources were converted to YODL format (another excellent piece of Open
86 Source software, available at
87 <a href="ftp://ftp.icce.rug.nl/pub/unix/"><strong>ftp://ftp.icce.rug.nl/pub/unix/</strong></a>)
88 and updated for the Samba2.0 release by Jeremy Allison.
89 <a href="mailto:samba-bugs@samba.anu.edu.au"><em>samba-bugs@samba.anu.edu.au</em></a>.
90 <p><br>See <a href="samba.7.html"><strong>samba (7)</strong></a> to find out how to get a full
91 list of contributors and details on how to submit bug reports,
92 comments etc.
93 </body>
94 </html>