17

How can I find the NetBIOS/WINS name of a PC in my LAN

In suma: I have the IP of a machine in my LAN I want to get the name of the machine (if it has one)

fixer1234
  • 28,064
ZEE
  • 1,014

3 Answers3

24

How can I find the NetBIOS/WINS name of a PC

You can use nbtstat

Example:

nbtstat -A x.x.x.x

Syntax

...

By IP address

  NBTSTAT -A IP_address [options] [interval]

Key

...

-A (Adapter status) List the remote machine's name table given its IP address

Source NBTSTAT.exe - Display protocol statistics and current TCP/IP connections using NBT (NetBIOS over TCP/IP)


Further reading

DavidPostill
  • 162,382
7

ping -a xxx.xxx.xxx.xxx

This will try WINS and then DNS.

The NSLOOKUP command does similar, but only via DNS.

zain.ali
  • 665
1

From a Windows system :

nbtstat -A x.x.x.x

From Linux a Linux :

nmblookup -A x.x.x.x

SebMa
  • 2,035