{"id":4690,"date":"2022-12-20T18:36:47","date_gmt":"2022-12-20T21:36:47","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/lmhosts-man5\/"},"modified":"2022-12-20T18:36:47","modified_gmt":"2022-12-20T21:36:47","slug":"lmhosts-man5","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/lmhosts-man5\/","title":{"rendered":"LMHOSTS (man5)"},"content":{"rendered":"<h1 align=\"center\">LMHOSTS<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#FILE FORMAT\">FILE FORMAT<\/a><br \/> <a href=\"#FILES\">FILES<\/a><br \/> <a href=\"#VERSION\">VERSION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lmhosts \u2212 The Samba NetBIOS hosts file<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lmhosts is the <b>samba<\/b>(7) NetBIOS name to IP address mapping file.<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This file is part of the <b>samba<\/b>(7) suite.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">lmhosts is the <i>Samba<\/i> NetBIOS name to IP address mapping file. It is very similar to the \/etc\/hosts file format, except that the hostname component must correspond to the NetBIOS naming format.<\/p>\n<h2>FILE FORMAT <a name=\"FILE FORMAT\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">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 &#8216;#&#8217; is ignored. Each line in the lmhosts file contains the following information:<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 IP Address \u2212 in dotted decimal format.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">\u2022 NetBIOS Name \u2212 This name format is a maximum fifteen character host name, with an optional trailing &#8216;#&#8217; character followed by the NetBIOS name type as two hexadecimal digits.<\/p>\n<p style=\"margin-left:28%; margin-top: 1em\">If the trailing &#8216;#&#8217; 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>\n<p style=\"margin-left:11%; margin-top: 1em\">An example follows:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\"># <br \/> # Sample Samba lmhosts file. <br \/> #<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"17%\"><\/td>\n<td width=\"-9%\">\n<p>192.9.200.1<\/p>\n<\/td>\n<td width=\"15%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"69%\">\n<p>TESTPC<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"17%\"><\/td>\n<td width=\"-9%\">\n<p>192.9.200.20<\/p>\n<\/td>\n<td width=\"15%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"69%\">\n<p>NTSERVER#20<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"17%\"><\/td>\n<td width=\"-9%\">\n<p>192.9.200.21<\/p>\n<\/td>\n<td width=\"15%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"69%\">\n<p>SAMBASERVER<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">Contains three IP to NetBIOS name mappings. The first and third will be returned for any queries for the names &#8220;TESTPC&#8221; and &#8220;SAMBASERVER&#8221; respectively, whatever the type component of the NetBIOS name requested.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The second mapping will be returned only when the &#8220;0x20&#8221; name type for a name &#8220;NTSERVER&#8221; is queried. Any other name type will not be resolved.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">The default location of the lmhosts file is in the same directory as the <b>smb.conf<\/b>(5) file.<\/p>\n<h2>FILES <a name=\"FILES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">lmhosts is loaded from the configuration directory. This is usually \/etc\/samba or \/usr\/local\/samba\/lib.<\/p>\n<h2>VERSION <a name=\"VERSION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">This man page is part of version 4.14.14 of the Samba suite.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>smbclient<\/b>(1), <b>smb.conf<\/b>(5), and <b>smbpasswd<\/b>(8)<\/p>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  lmhosts \u2212 The Samba NetBIOS hosts file <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[959],"tags":[961,1617,1291],"class_list":["post-4690","post","type-post","status-publish","format-standard","hentry","category-5-formatos-de-ficheros","tag-961","tag-lmhosts","tag-man5"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4690","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=4690"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/4690\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=4690"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=4690"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=4690"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}