Provided by:
manpages-zh_1.5-1_all 
NAME
nmblookup - 基於TCP/IP上的NetBIOS客戶用於查詢NetBIOS名字的程式
` SYNOPSIS
nmblookup [-M] [-R] [-S] [-r] [-A] [-h] [-B <broadcast address>] [-U
<unicast address>] [-d <debug level>] [-s <smb config file>] [-i
<NetBIOS scope>][-T] [-f] {name}
yz DESCRIPTION
nmblookup 是 Samba(7)套件的一部分。
nmblookup
用於在網路中查詢NetBIOS名字並映射對應的IP地址。使用它可以在一-
荅S殊的IP廣播區域或者機器中直接查詢名字。所有的查詢操作都在UDP上實現。
OPTIONS
-M 通過查找類型為0x1d的NetBIOS名字 name來搜索一茈D瀏覽器。如果
name 是 "-",那麼它搜索特殊的名字 __MSBROWSE__。 Please note
that in order to use the name "-", you need to make sure "-"
isn't parsed as an argument, e.g. use : nmblookup -M -- -。
-R 用這蚇龠策b包中指定一荍瘙o到的二進制位來進行遞歸查找。
當向WINS伺服器發送名字查詢及使用者希望在WINS伺服器上進行名字查詢時可以用這種方法。如果不設定這樣的二進制遞歸位,則主機上的普通NetBIOS處理代碼(以廣播方式)將替代它。詳細資料請參見rfc1001和rfc1002。
-S 通過這蚇龠等i以使名字查詢操作返回一-
粄P地址時,再跟著作節點狀態的查詢操作。節點狀態查詢會返回主機注冊的NetBIOS名字。
-r 用這蚇龠筐虒桯洠繪j定UDP端口137用於發送和接收UDP數據包。使用這-
蚇龠答熔z由是Windows 95在這方惘酗@蚇欞~:它會忽略請求數據包的-
鴝l端口而只回復到UDP端口137(系統發送和接收包可能並不用137端口)。不幸的情況是在UNIX系統上綁定這-
蚨搕f需nroot權。另外,運行nmbd守護程式也應該綁定到這蚨搕f。
-A 用這蚇龠筆name參數解釋成一粄P地址並使用這-
茼a址來作節點狀態查詢。
-n <primary NetBIOS name>
This option allows you to override the NetBIOS name that Samba
uses for itself. This is identical to setting the netbios name
parameter in the smb.conf file. However, a command line setting
will take precedence over settings in smb.conf.
-i <scope>
This specifies a NetBIOS scope that nmblookup will use to
communicate with when generating NetBIOS names. For details on
the use of NetBIOS scopes, see rfc1001.txt and rfc1002.txt.
NetBIOS scopes are very rarely used, only set this parameter if
you are the system administrator in charge of all the NetBIOS
systems you communicate with.
-W|--workgroup=domain
Set the SMB domain of the username. This overrides the default
domain which is the domain defined in smb.conf. If the domain
specified is the same as the servers NetBIOS name, it causes the
client to log on using the servers local SAM (as opposed to the
Domain SAM).
-O socket options
TCP socket options to set on the client socket. See the socket
options parameter in the smb.conf manual page for the list of
valid options.
-h|--help
列印幫助(使用方法)信息。
-B <broadcast address>
用給出的廣播地址發送查詢。如果沒有使用這-
蚇龠答爾隉Anmblookup將會把查詢發送到通過自動檢測或者在smb.conf
(5)檔案的interfaces參數定義好的網路接口的廣播地址上。
-U <unicast address>
用這蚇龠給麉定地址或者unicast
address主機進行單獨的查詢。查找一紟INS伺服器需-
n這樣的參數(還有-R選項)。
-V 輸出程式版本號。
-s <configuration file>
指定的檔案包含伺服器需-
n的配置細節。檔案信息包括伺服器特定的信息,比如使用
printcap檔案;也包括伺服器提供的服務的描z。查看smb.conf
來獲得更詳細的信息。預設的配置檔名是在編譯時指定的。
-d|--debug=debuglevel
debuglevel 是荓q0到10的整數。參數未指定時預設0。
這-
V高,將記錄越多關於nmblookup活動的資料。在把調試級設為0時,只記錄緊急錯誤和嚴-
孩筆i。級別一是日常運行時合適的級別 -
它產生小量的執行操作的信息。
1以上的調試級將產生相當多的記錄數據,並且只在研究問題時才有用。3以上的調試級只被設-
p為讓開發者使用並會產生極大數量的記錄數據,而且其中很多部分非常難以理解。
注意在此使用這荌捊N越過在smb.conf (5)檔案中的log level參數。
-l|--logfile=logbasename
File name for log/debug files. The extension ".client" will be
appended. The log file is never removed by the client.
-T 使用這-
蚇龠筐炱o查找到的ip地址通過DNS反向查詢查出所有的DNS名稱,並將結果輸出到通常的的
IP address .... NetBIOS name
對應關系前情C
-f Show which flags apply to the name that has been looked up.
Possible answers are zero or more of: Response, Authoritative,
Truncated, Recursion_Desired, Recursion_Available, Broadcast.
name 這蚇龠等峔茷定n查的NetBIOS名字。根據前-
惜w經使用的選項這裏可能出現的形式是一-
粍etBIOS名或者是IP地址。如果用的是NetBIOS名則可以在名字中加入'#<type>'來指定不同的名字類型。當然也可以用*來代替輸入項,這樣的話會通過廣播區域返回所有已注冊的名字。
d EXAMPLES
nmblookup 可被用於查詢WINS伺服器(同樣nslookup用於查詢DNS伺服器)。-
n查詢WINS伺服器,必須這樣調用 nmblookup:
nmblookup -U server -R 'name'
例如,運行:
nmblookup -U samba.org -R 'IRIX#1B'
通過這-
茤R令將向WINS伺服器samba.org查詢IRIX工作組中的域主瀏覽器(名字類型為1B)。
VERSION
此手冊隄O針對samba套件版本3.0的。
SEE ALSO
nmbd(8), samba(7), and smb.conf(5).
@ AUTHOR
samba軟體和相關工具最初由Andrew Tridgell創建。samba現在由Samba Team
作為開源軟體來發展,類似linux核心的開發方式。
最初的samba手冊隄O Karl Auer寫的。 手冊-
鴝l碼已經轉換為YODL格式(另一種很好的開源軟體,可以在ftp://ftp.ice.rug.nl/pub/unix找到),由Jeremy
Sllison 更新到Samba2.0 版本。 Gerald Carter
在Samba2.2中將它轉化為DocBook 格式。 Alexander Bokovoy 在Samba
3.0中實現了DocBook XML4.2 格式的轉換。
[]
meaculpa <meaculpa@21cn.com>
[]
2000/12/08
mlinuxan:
http://cmpp.linuxforum.net
NMBLOOKUP(1)