how to find hostname using ip address in cmd

0 votes
Without logging into the UNIX host, I need to determine the host name of a UNIX host whose IP is known.
Feb 9, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,730 points
96,916 views

1 answer to this question.

0 votes

To find host name from IP you have to ways one is querying DNS and another is witout DNS

while querying DNS you need to us the command prompt. In the Command prompt that appears on the screen, type "nslookup % ipaddress % ", replacing % ipaddress % with the IP address for which you wish to determine the hostname. Underneath the line with the IP address you provided, look for the line labelled "Name" and note the value next to "Name" as the computer's hostname.

if you want to do it without using DNS type "nbtstat -A % ipaddress % " at the command prompt, substituting the IP address for " % ipaddress % ". Read the data and locate the NETBIOS table. Locate a row with the type "UNIQUE" and look for the computer's hostname in the "Name" column for that row.

answered Feb 20, 2022 by Edureka
• 12,700 points

Related Questions In Cyber Security & Ethical Hacking

+1 vote
1 answer

How to find IP address of nodes in my network?

The IP address of the nodes connected ...READ MORE

answered Feb 9, 2019 in Cyber Security & Ethical Hacking by Omkar
• 69,180 points
5,704 views
0 votes
1 answer

How to find MAC address using IP address?

To find the MAC address, run this ...READ MORE

answered Feb 9, 2019