« Java Consumer JRE - two chances to make a first impression | Main

reverse local ip lookup

For years I used to rely on yp or nis on unix/linux to help me match local ip addresses to hostnames. Or in the more desperate case before ssh became popular, try to telnet and look for the login banner to find the hostname.

However after moving to a local dns I wasn't able to find the write command, nslookup worked against the greater internet not my own intranet.

There was a command that I had overlooked that has helped me figure this out again.
It is as simple as

host -l `hostname -d` |grep [ipaddress]

Where [ipaddress] is the ip address you wish to search for

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

About

This page contains a single entry from the blog posted on March 10, 2009 3:34 PM.

The previous post in this blog was Java Consumer JRE - two chances to make a first impression.

Many more can be found on the main index page or by looking through the archives.