How do I get the computer name from an IP Address in Unix

4

I want to find a computer on my network, I have the IP address but not the name. How do I get the name?

Thanks

JMK

Posted 2012-04-01T16:57:54.933

Reputation: 2 839

Answers

4

Try host ip-address (obviously replacing ip-address by the actual IP address). Check man host for options. Alternatively dig or nslookup.

lupincho

Posted 2012-04-01T16:57:54.933

Reputation: 1 630

It would appear you type faster than me - exactly what I was going to say :) – Phil – 2012-04-01T17:09:03.760

1Specifically, dig -x – Garrett – 2012-04-01T17:09:53.823