How to find hostname from ip in linux

We can find hostname from ip-address in multiple ways but some of useful and short commands are mentioned below:

$ nslookup <ip>
or
$ host <ip>

Example:

test1@dev[~]$ nslookup 155.39.0.80
Server: 155.39.0.80
Address: 155.39.0.80#53
80.0.39.155.in-addr.arpa name = oradev.testenv.com.

or

test1@dev[~]$ host 155.39.0.80
80.0.39.155.in-addr.arpa domain name pointer oradev.testenv.com.

Above marked in green is hostname

Please share If you like..Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on Yummly

3 Comments

Add a Comment
  1. rohit kumar sachan

    very good command it’s very helpful for mr

  2. 109943 302648extremely nice post, i undoubtedly adore this outstanding web site, carry on it 242035

  3. Pingback: URL

Leave a Reply

Your email address will not be published. Required fields are marked *

Fariddin Shaikh's Oracle DBA Blog © 2016 Being DBA
Go Back