fyzjhh 发表于 2013-1-31 02:47:17

根据ip查看主机名

1 在windows中有两种方法
1.1ping命令   如:ping -a 172.29.139.23
Pinging jenny with 32 bytes of data:

Reply from 172.28.139.23: bytes=32 time<1ms TTL=64
Reply from 172.28.139.23: bytes=32 time<1ms TTL=64
Reply from 172.28.139.23: bytes=32 time<1ms TTL=64
Reply from 172.28.139.23: bytes=32 time<1ms TTL=64

Ping statistics for 172.28.139.23:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
1.2nbtstat    如:nbtstat -a 172.29.139.23
Node IpAddress: Scope Id: []

   NetBIOS Remote Machine Name Table

   Name               Type         Status
---------------------------------------------
JENNY          <00>UNIQUE      Registered
JENNY          <03>UNIQUE      Registered
JENNY          <20>UNIQUE      Registered
..__MSBROWSE__.<01>GROUP       Registered
WORKGROUP      <1D>UNIQUE      Registered
WORKGROUP      <1E>GROUP       Registered
WORKGROUP      <00>GROUP       Registered

MAC Address = 00-00-00-00-00-00

2 linux 中nbtstat是可以的。还有一种是使用host命令。大家可以试一下。
页: [1]
查看完整版本: 根据ip查看主机名