lmhosts 中文man页面

系统
lmhosts是一个samba的NetBIOS名字到IP地址映射文件。它与/etc/hosts文件的格式非常相似,除了主机名部分必须符合NetBIOS名字格式。

NAME

lmhosts - samba的NetBIOS主机列表文件  

总览

lmhosts是一个samba的NetBIOS名字到IP地址映射文件。  

描述

此文件是samba套件的一部分。

lmhosts是一个samba的NetBIOS名字到IP地址映射文件。它与/etc/hosts文件的格式非常相似,除了主机名部分必须符合NetBIOS名字格式。  

文件格式

这是一个在一行之内包含NetBIOS名字的ASCII文件。每行有两个字段用空格互相隔开。任何以#号开始的条目将被忽略。这个文件的每一行都包含了以下的信息:

IP
地址 - 点分十进制格式。
NetBIOS
名字 - 名字格式***用十五个字符,后面可以跟以#号起头的两位十六进制值用于指出 NetBIOS名字类型。

如果后跟的#被忽略,那么所给出的IP地址将返回所有与给出的名字相匹配的机器名,而不管查找的是何种NetBIOS名字类型。

下面有个例子:

#
# Sample Samba lmhosts file.
#
192.9.200.1    TESTPC

192.9.200.20   NTSERVER#20

192.9.200.21   SAMBASERVER

 

这里包含了三个IP地址到NetBIOS名字的映射。***和第三个将返回名字分别为"TESTPC"和 "SAMBASERVER"的任何查询结果,而不管所需的是何种类型NetBIOS名字成份。

第二个映射将只返回当被查询的"NTSERVER"名字类型为"0x20"的值。任何其它的名字类型将不会被解释。

lmhosts文件的默认保存位置与smb.conf文件的目录相同。  

版本

此手册页是针对samba套件版本2.0的。  

另见

smb.conf (5), smbclient (1), smbpasswd (8), samba (7).  

#p#

NAME

lmhosts - The Samba NetBIOS hosts file  

SYNOPSIS

lmhosts is the samba(7) NetBIOS name to IP address mapping file.

DESCRIPTION

This file is part of the samba(7) suite.

lmhosts is the Samba 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.

FILE FORMAT

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:

*
IP Address - in dotted decimal format.
*
NetBIOS Name - This name format is a maximum fifteen character host name, with an optional trailing '#' character followed by the NetBIOS name type as two hexadecimal digits.

If the trailing '#' 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.

An example follows:

#
# Sample Samba lmhosts file.
#
192.9.200.1     TESTPC
192.9.200.20    NTSERVER#20
192.9.200.21    SAMBASERVER
        .fi


Contains three IP to NetBIOS name mappings. The first and third will be returned for any queries for the names "TESTPC" and "SAMBASERVER" respectively, whatever the type component of the NetBIOS name requested.


The second mapping will be returned only when the "0x20" name type for a name "NTSERVER" is queried. Any other name type will not be resolved.


The default location of the lmhosts file is in the same directory as the smb.conf(5) file.

FILES

lmhosts is loaded from the configuration directory. This is usually /etc/samba or /usr/local/samba/lib.

VERSION

This man page is correct for version 3.0 of the Samba suite.

SEE ALSO

smbclient(1), smb.conf(5), and smbpasswd(8)

责任编辑:韩亚珊 来源: CMPP.net
相关推荐

2011-08-24 16:48:36

man中文man

2011-08-15 10:21:09

man中文man

2011-08-11 16:11:49

at中文man

2011-08-25 10:21:56

man.conf中文man

2011-08-25 15:39:42

fcloseall中文man

2011-08-25 15:00:15

cfgetispeed中文man

2011-08-19 18:35:50

issue中文man

2011-08-25 17:03:51

pclose中文man

2011-08-25 17:40:25

setvbuf中文man

2011-08-23 14:21:16

poweroff中文man

2011-08-24 15:52:59

intro中文man

2011-08-23 13:40:31

2011-08-25 15:54:08

ferror中文man

2011-08-25 17:24:54

puts中文man

2011-08-25 18:34:55

ungetc中文man

2011-08-23 10:03:40

useradd中文man

2011-08-23 10:29:02

chpasswd中文man

2011-08-23 10:34:22

convertquot中文man

2011-08-23 15:39:34

rpmbuild中文man

2011-08-24 15:48:38

INSERT中文man
点赞
收藏

51CTO技术栈公众号