Identifying a Remote Machine.

Christian Walther cptsalek at gmail.com
Sun Jan 14 21:55:04 UTC 2007


On 14/01/07, Grant Peel <gpeel at thenetnow.com> wrote:
> ACtually no,
>
> Sory if the question was vauge,
>
> What I am looking to do is to create a tool that will identify what MACHINE
> (not domain) an ip is being used on.

What about connecting to every domainname and quering the hostname?
Something like

for ip in <domainlist>
do
  physicalhostname=`ssh $ip "hostname"`
  echo "$ip $physicalhostname"
done

This should work for a sh compatible shell script. It should be easy
to do something similar in php.


More information about the freebsd-questions mailing list