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,620 points
90,564 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,690 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,220 points
5,082 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 in Cyber Security & Ethical Hacking by Omkar
• 69,220 points
2,436 views
0 votes
0 answers

How to get IP address using nslookup and python on Windows?

One such modification occurred while I was ...READ MORE

Feb 17, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
760 views
0 votes
1 answer

How to return client IP address in loopback 4?

You should also add this code in ...READ MORE

answered Mar 2, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
1,219 views
0 votes
1 answer

how to find ip address in cmd

1. Open the Command Prompt.   a. Click the Start icon, ...READ MORE

answered Feb 9, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
47,764 views
0 votes
2 answers

IP Address Class C network and its gateway

The class C network has less than ...READ MORE

answered Feb 21, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
2,899 views
0 votes
0 answers

Track the exact location of IP address

I looked into IP addresses and a ...READ MORE

Feb 14, 2022 in Cyber Security & Ethical Hacking by Edureka
• 13,620 points
934 views
0 votes
0 answers

find IP address by domain in go

I am using below code for an ...READ MORE

Feb 16, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,690 points
1,319 views
0 votes
1 answer

how to change your ip address?

Try using the following code. This the most ...READ MORE

answered Feb 21, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,690 points
773 views
0 votes
1 answer

How can I force the login to a specific ip address?

Try to access the router's default page. It's ...READ MORE

answered Feb 15, 2022 in Cyber Security & Ethical Hacking by Edureka
• 12,690 points
1,526 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP