Code Yarns β€πŸ‘¨β€πŸ’»
Tech Blog ❖ Personal Blog

Find hostname from IP address

πŸ“… 2012-Jul-28 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ hostname, ip address, ping ⬩ πŸ“š Archive

Problem

You know the IP address of a computer. You want to find out the name of the computer or its hostname.

Solution

The humble ping command can resolve the hostname from a IP address. Use the ping -a 172.20.30.40 command to find the hostname of the computer with IP addressΒ 172.20.30.40.

Tried with: Windows 7


Β© 2022 Ashwin Nanjappa β€’ All writing under CC BY-SA license β€’ 🐘 @codeyarns@hachyderm.io β€’ πŸ“§