My network includes machines running Linux and others running Windows. And my machine is running Linux.
Type in terminal
It will show all host name in LAN whether it is Linux or windows.
Type in terminal
sudo aptitude install nmap nmap -sP xxx.xxx.xxx.xxx
This will give you:
Starting Nmap 5.21 ( http://nmap.org ) at 2012-11-03 19:08 CET Nmap scan report for HOST.DOMAIN (xxx.xxx.xxx.xxx) Host is up (0.00052s latency). MAC Address: YY:YY:YY:YY:YY:YY (Manufactor) Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds
Where HOST.DOMAIN is the DNS-name of the machine.
What if you try this:
You can run it in windows
nbtstat -A xxx.xxx.xxx.xxx (where x is the ip address)
on ubuntu you can install nbtscan. You can find more information here : http://www.unixwiz.net/tools/nbtscan.html
Hope it helps
A Netbios name reverse lookup might accomplish what you want more than than "hostname" which is a function of DNS and tcp/ip. nmblookup with the -A parameter returns device names as well as mac address. Try something like this:
nmblookup -A 192.168.1.2
If your network is running a DHCP server, usually on the modem/router, chances are it will have a way for you to see the DHCP assigned addresses - often by a web page, and that often lists the computer names beside the allocated ip addresses.
To the best of my knowledge, there is no utility available to resolve an IP address into a NetBIOS name. I'd imagine that some sort of a network scoping program or a penetration testing program might be able to give you that sore of information though. However, all of the computers would have to be on the same domain and subnet.
I'd just use
it will show me the host name (usually the computer name)
protected by jokerdino♦ Oct 4 '13 at 16:05
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?