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