Wednesday, 8 July 2015

Get hostname from ip address and vice versa in cmd

We can resolve hostname from ip address using ping command in cmd (command prompt) and we can also get ip address of a specified computer using ping command.

Resolve Hostname from IP Address in CMD:

Normally, we use ping command to check whether a machine is online or not. we can get machine name from ip address by giving extra parameter -a with ping command.
ping -a
Get hostname from ip address in cmd

Get IP Address from Computer name in CMD:

This may be funny (:: if you already know, we can get ip address from machinename with ping command.
ping hp-PC
Get IP Address from Computername in CMD


No comments:

Post a Comment