Name from the IP address

Solved
papisow101 Posted messages 33 Status Membre -  
brupala Posted messages 115348 Registration date   Status Membre Last intervention   -
--Hello

I am in a LAN where the host numbers of the PCs are referenced on the wall jacks, but someone has taken my address. How can I know the host name from its IP address?

More simply, how can I find out the name of a machine from its IP address in a LAN?

Thank you for enlightening me.

Best regards, jibson

2 answers

brupala Posted messages 115348 Registration date   Status Member Last intervention   14 269
 
Hi,
Windows subnet (netbios):
NBTSTAT -A IP address

otherwise,
nslookup IP address
, maybe, but it's not guaranteed at all, especially on a local network.
otherwise, you can get its MAC address if it's on the same network:
ping IP address
then
arp -a

69
mailoinf
 
Hello

Thank you very much

the function helped me a lot
0
Okou
 
nslookup works perfectly for me. Thank you.
1
LF
 

In the Windows command prompt:

ping -a IP address

Will respond "Sending a 'ping' request to xxxxxx [IP address] etc. where xxxxxx is the device name.

As long as the device declares a name... otherwise it will display the IP address. It does indeed show the name of my printer, but not for my smartphone or PC.

0
brupala Posted messages 115348 Registration date   Status Member Last intervention   14 269 > LF
 

Hello,

that’s some digging up!

it's ping on name that returns the address, but not the other way around, oh sorry, the -a option, I had forgotten about that, but it probably only works if there’s a DNS reverse or mDNS, maybe, in netbios, I don’t think so.

In fact, it seems to also work with netbios resolution.

0