+5 votes
306 views
by (40.6k points)
My LAN has 50 Windows hosts. I try to ping the IP address for a Windows machine running on the Windows command line.

The question is how do you get a host name of a specific IP address in the same workgroup of Windows?

Another question is how to know the hostname of the Windows machine from a Linux box if I have an IP address? ¿Command you use? I have a host running Kubuntu 9.04.

2 Answers

+3 votes
by (40.6k points)

If you want to determine the name of a Windows machine without DNS, you should try Nbtstat. But that will only work on Windows:

For example,

NBTSTAT -A 10.10.10.10
In Linux, you should try nmblookup does much the same.

+4 votes
by (40.6k points)

There are a couple of ways to do this on Windows and Linux. For example,

nslookup: the classic way to find the IP address of a host name or vice versa.
ipconfig or ifconfig based on whether they run on Windows or Unix
hostname -i on Linux

6.5k questions

8.2k answers

191 comments

71 users

Please leave a comment if the solution works or not.
(with device model) [X]Close
Ask a Question
Welcome to Wikiwhy Q&A, where you can ask questions and receive answers from other members of the community.

Categories

...