14.4k views
1 vote
How to find hostname using ip address in cmd

User Emma
by
7.4k points

1 Answer

5 votes

Final answer:

To find a hostname using an IP address in the command prompt, use the nslookup command followed by the IP address.

Step-by-step explanation:

To find the hostname using an IP address in the command prompt (cmd), you can use the nslookup command. This command is commonly used for DNS lookup to query the Internet domain name system to obtain domain name or IP address mapping information. Here are the steps:

  1. Open the Command Prompt by typing cmd in the Run dialog box, which can be accessed by pressing Windows key + R.
  2. Once in the Command Prompt, type nslookup followed by the IP address you wish to query, and press Enter.
  3. After executing the command, it will display various DNS information, including the hostname associated with the IP address.

For example, typing nslookup 192.0.2.1 will result in the command prompt returning the hostname of the IP address, if available.

User GvM
by
7.5k points