other languages
NMBLOOKUP(1) | NMBLOOKUP(1) |
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}描述 DESCRIPTION¶
nmblookup 是 Samba(7)套件的一部分。選項 OPTIONS¶
- -M
- 通過查找類型為0x1d的NetBIOS名字
name來搜索一個主瀏覽器。如果
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
- 用這個選項在包中指定一個希望得到的二進制位來進行遞歸查找。
當向WINS伺服器發送名字查詢及使用者希望在WINS伺服器上進行名字查詢時可以用這種方法。如果不設定這樣的二進制遞歸位,則主機上的普通NetBIOS處理代碼(以廣播方式)將替代它。詳細資料請參見rfc1001和rfc1002。
- -S
- 通過這個選項可以使名字查詢操作返回一個IP地址時,再跟著作節點狀態的查詢操作。節點狀態查詢會返回主機注冊的NetBIOS名字。
- -r
- 用這個選項來試圖並綁定UDP端口137用於發送和接收UDP數據包。使用這個選項的理由是Windows
95在這方面有一個錯誤:它會忽略請求數據包的原始端口而只回復到UDP端口137(系統發送和接收包可能並不用137端口)。不幸的情況是在UNIX系統上綁定這個端口需要root權限。另外,運行
nmbd守護程式也應該綁定到這個端口。
- -A
- 用這個選項把name參數解釋成一個IP地址並使用這個地址來作節點狀態查詢。
- -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>
- 用給出的廣播地址發送查詢。如果沒有使用這個選項的話,nmblookup將會把查詢發送到通過自動檢測或者在smb.conf
(5)檔案的
interfaces參數定義好的網路接口的廣播地址上。
- -U <unicast address>
- 用這個選項對指定地址或者unicast
address主機進行單獨的查詢。查找一個WINS伺服器需要這樣的參數(還有
-R選項)。
- -V
- 輸出程式版本號。
- -s <configuration file>
- 指定的檔案包含伺服器需要的配置細節。檔案信息包括伺服器特定的信息,比如使用哪個
printcap檔案;也包括伺服器提供的服務的描述。查看
smb.conf
來獲得更詳細的信息。預設的配置檔名是在編譯時指定的。
- -d|--debug=debuglevel
- debuglevel
是個從0到10的整數。參數未指定時預設值為0。
- -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
- 使用這個選項使得查找到的ip地址通過DNS反向查詢查出所有的DNS名稱,並將結果輸出到通常的的
- -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
- 這個選項用來指定要查的NetBIOS名字。根據前面已經使用的選項這裏可能出現的形式是一個NetBIOS名或者是IP地址。如果用的是NetBIOS名則可以在名字中加入'#<type>'來指定不同的名字類型。當然也可以用*來代替輸入項,這樣的話會通過廣播區域返回所有已注冊的名字。