Rebuild docs
[Samba/vl.git] / docs / htmldocs / lmhosts.5.html
blob9995b6937aeba6f224595c21b3eb478e4a822c37
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>lmhosts</title><link rel="stylesheet" href="samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.59.1"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="lmhosts.5"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>lmhosts &#8212; The Samba NetBIOS hosts file</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><p><tt>lmhosts</tt> is the <a href="Samba.7.html">Samba(7)</a> NetBIOS name to IP address mapping file.</p></div><div class="refsect1" lang="en"><h2>DESCRIPTION</h2><p>This file is part of the <a href="Samba.7.html">Samba(7)</a> suite.</p><p><tt>lmhosts</tt> is the <span class="emphasis"><em>Samba
2 </em></span> NetBIOS name to IP address mapping file. It
3 is very similar to the <tt>/etc/hosts</tt> file
4 format, except that the hostname component must correspond
5 to the NetBIOS naming format.</p></div><div class="refsect1" lang="en"><h2>FILE FORMAT</h2><p>It is an ASCII file containing one line for NetBIOS name.
6 The two fields on each line are separated from each other by
7 white space. Any entry beginning with '#' is ignored. Each line
8 in the lmhosts file contains the following information:</p><div class="itemizedlist"><ul type="disc"><li><p>IP Address - in dotted decimal format.</p></li><li><p>NetBIOS Name - This name format is a
9 maximum fifteen character host name, with an optional
10 trailing '#' character followed by the NetBIOS name type
11 as two hexadecimal digits.</p><p>If the trailing '#' is omitted then the given IP
12 address will be returned for all names that match the given
13 name, whatever the NetBIOS name type in the lookup.</p></li></ul></div><p>An example follows:</p><pre class="programlisting">
15 # Sample Samba lmhosts file.
17 192.9.200.1 TESTPC
18 192.9.200.20 NTSERVER#20
19 192.9.200.21 SAMBASERVER
20 </pre><p>Contains three IP to NetBIOS name mappings. The first
21 and third will be returned for any queries for the names &quot;TESTPC&quot;
22 and &quot;SAMBASERVER&quot; respectively, whatever the type component of
23 the NetBIOS name requested.</p><p>The second mapping will be returned only when the &quot;0x20&quot; name
24 type for a name &quot;NTSERVER&quot; is queried. Any other name type will not
25 be resolved.</p><p>The default location of the <tt>lmhosts</tt> file
26 is in the same directory as the <a href="smb.conf.5.html">smb.conf(5)</a> file.</p></div><div class="refsect1" lang="en"><h2>VERSION</h2><p>This man page is correct for version 3.0 of the Samba suite.</p></div><div class="refsect1" lang="en"><h2>SEE ALSO</h2><p><a href="smbclient.1.html">smbclient(1)</a>, <a href="smb.conf.5.html">smb.conf(5)</a>, and <a href="smbpasswd.8.html">smbpasswd(8)</a>
27 </p></div><div class="refsect1" lang="en"><h2>AUTHOR</h2><p>The original Samba software and related utilities
28 were created by Andrew Tridgell. Samba is now developed
29 by the Samba Team as an Open Source project similar
30 to the way the Linux kernel is developed.</p><p>The original Samba man pages were written by Karl Auer.
31 The man page sources were converted to YODL format (another
32 excellent piece of Open Source software, available at
33 <a href="ftp://ftp.icce.rug.nl/pub/unix/" target="_top">
34 ftp://ftp.icce.rug.nl/pub/unix/</a>) and updated for the Samba 2.0
35 release by Jeremy Allison. The conversion to DocBook for
36 Samba 2.2 was done by Gerald Carter. The conversion to DocBook
37 XML 4.2 was done by Alexander Bokovoy.</p></div></div></body></html>