Welcome to deBUG.to Community where you can ask questions and receive answers from Microsoft MVPs and other experts in our community.
1 like 0 dislike
65.3k views
in Windows Server by 37 41 48
edited by

Is it possible to get the corresponding HOSTANME by Server IP Addresss in Windows within my organization network? if YES, What's the best way to know How to get Hostname from IP in Windows using CMD?


1 Answer

1 like 0 dislike
by 158 184 367
selected by
 
Best answer

How to get HostName by IP in Windows?

To get HostName from IP in Windows, you can use one of the below options:

  1. Ping Command-Line.
  2. nbtstat Command-Line.
  3. nslookup Command-Line.
  4. Reverse DNS Lookup online tool

1) Get Hostname from IP using Ping

You can use the Ping command-line to get hostname by IP as the following:

  1. Open CMD.
  2. Run the below command-line

     ping -a ServerIP
    
  3. The result should look like
    How to get hostname by IP windows 10

    Ping is the primary TCP/IP command used to troubleshoot connectivity, reachability, and name resolution. it is available only if you have installed the TCP/IP protocol.

2) Get Hostname with IP using nbtstat

You can use the nbtstat command-line to get hostname with IP as the following:

  1. Open CMD.
  2. Run the below command-line

     nbtstat -a ServerIP
    
  3. The result should look like
    get hostname from IP windows 10

    nbtstat displays NetBIOS over TCP/IP (NetBT) protocol statistics, NetBIOS name tables for both the local computer and remote computers, and the NetBIOS name cache, it is available only if you have installed the TCP/IP protocol.

3) Get Hostname by IP using nslookup

You can use the nslookup command-line to get hostname from IP as the following:

  1. Open CMD.
  2. Run the below command-line

     nslookup ServerIP
    
  3. The result should look like
    How to get hostname from IP address windows 10

    The nslookup displays information that you can use to diagnose Domain Name System (DNS) infrastructure. it is available only if you have installed the TCP/IP protocol.

4) How to get HostName of IP Online?

You can also get the Hostname of IP Online using a Reverse DNS Lookup online tool as the following:

  1. Open Reverse DNS Lookup online tool
  2. Type your IP Address that you would like to get its corresponding HostName.
  3. Click Lookup Hostname to show the result
    get hostname from IP online

Applies To

  • Windows 10
  • Windows Server
by 37 41 48
1 0
Very helpful answer, Thanks!
If you don’t ask, the answer is always NO!
...