在nslookup 資訊不足,或是資訊沒有參考價值的時候
如果已知對方ip, 想要知道對方的hostname
在區網內,可以利用 nmblookup 來查詢對方主機名稱

範例:
nmblookup -A 192.168.1.102

如果系統找不到這個指令,請安裝samba 套件
# cd /usr/ports/net/samba47
# make install clean 



 

其他功能請參閱help
# nmblookup --help
Usage: <NODE> ...
  -B, --broadcast=BROADCAST-ADDRESS      Specify address to use for broadcasts
  -f, --flags                            List the NMB flags returned
  -U, --unicast=STRING                   Specify address to use for unicast
  -M, --master-browser                   Search for a master browser
  -R, --recursion                        Set recursion desired in package
  -S, --status                           Lookup node status as well
  -T, --translate                        Translate IP addresses into names
  -r, --root-port                        Use root port 137 (Win95 only replies to this)
  -A, --lookup-by-ip                     Do a node status on <name> as an IP Address

Help options:
  -?, --help                             Show this help message
      --usage                            Display brief usage message

Common samba options:
  -d, --debuglevel=DEBUGLEVEL            Set debug level
  -s, --configfile=CONFIGFILE            Use alternate configuration file
  -l, --log-basename=LOGFILEBASE         Base name for log files
  -V, --version                          Print version
      --option=name=value                Set smb.conf option from command line

Connection options:
  -O, --socket-options=SOCKETOPTIONS     socket options to use
  -n, --netbiosname=NETBIOSNAME          Primary netbios name
  -W, --workgroup=WORKGROUP              Set the workgroup name
  -i, --scope=SCOPE                      Use this Netbios scope

undefined
Ubuntu 系統管理與架站實務(第三版)

作者: 施威銘研究室  
出版社:旗標  
出版日期:2018/10/31
語言:繁體中文

arrow
arrow
    文章標籤
    nmblookup
    全站熱搜

    helloworld 發表在 痞客邦 留言(0) 人氣()