I have tried mac address and ARP, there are lot of servers connected with the switch having multiples LAN cards. So mac table shows the mac of physical machine as well as virtual machines. But i want to know only the physical machines. Is there any other method to find out the IP address, hostname of the physical machines only?
You can also use 'host' command to find IP address associated with a hostname. Since a hostname can have multiple IP address, its better to use a DNS lookup utillity like host or nslookup. This way you will get all the IP address which that DNS name (hostname) is pointing. Commands like ping will only show one of the IP address mapped to the Dec 07, 2018 · The main difference between IP address and hostname is that IP address is a numerical label assigned to each device connected to a computer network that uses the Internet Protocol for communication while hostname is a label assigned to a network that sends the user to a specific website or a webpage. To find a hostname in your local network by IP address you can use: nmblookup -A
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
This Hostname Lookup tool often referred to as hostname lookup does exactly what it says.it looks up the Hostname of the IP Address you enter. A simple, yet very effective tool for getting the host name information you need.
How to Find a Hostname for an IP Address | Small Business
Finding a computer name using IP [Solved] - CCM Mar 11, 2020 How to Get Hostname from IP Address - unix /linux The host command in unix or linux operating system can be used to get the hostname from an IP address. An example is shown below: > host 4.59.125.171 171.125.59.4.in-addr.arpa is an alias for 171.128-254.125.59.4.in-addr.arpa. 171.128-254.125.59.4.in-addr.arpa domain name pointer 4-59-125-171-hou.servercraft.co. The host command gets the hostname listed in the /etc/resolv.conf file by … What Is My IP Address - See Your Public Address - IPv4 & IPv6