How to find ip address through hostname in local network? How to find ip address through hostname in local network? unix unix

How to find ip address through hostname in local network?


We can run ping command as below

ping hostname -f

and from the output in bracket we can see the IP address of the machine