From owner-freebsd-questions@FreeBSD.ORG Sun Jan 14 21:55:04 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6D7D316A40F for ; Sun, 14 Jan 2007 21:55:04 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.235]) by mx1.freebsd.org (Postfix) with ESMTP id 11E5B13C44B for ; Sun, 14 Jan 2007 21:55:01 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so1461714wxc for ; Sun, 14 Jan 2007 13:55:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ue5WtDXDFbasNiL6Uj00Ypi7MdjclLw3kKdRpMqKmPSuuM59QO+eum1UDtqhfsPfrg/s5rBM3BF8ulYUOfA4RZ7VcOQjGiBjIbPLKZPU4nAFW1TWKVgfCUKmNv3eEPVKRtoYqLyhFjawL5eWKtjXIXWOKUlgm1uRIpykEx3W0tY= Received: by 10.70.125.11 with SMTP id x11mr6571990wxc.1168811701368; Sun, 14 Jan 2007 13:55:01 -0800 (PST) Received: by 10.70.14.15 with HTTP; Sun, 14 Jan 2007 13:55:01 -0800 (PST) Message-ID: <14989d6e0701141355s3cbc8567h4bb07176f823516b@mail.gmail.com> Date: Sun, 14 Jan 2007 22:55:01 +0100 From: "Christian Walther" To: "Grant Peel" In-Reply-To: <008f01c737e9$c5518470$6501a8c0@GRANT> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <007e01c737d7$20573170$6501a8c0@GRANT> <008f01c737e9$c5518470$6501a8c0@GRANT> Cc: freebsd-questions@freebsd.org, Pietro Cerutti Subject: Re: Identifying a Remote Machine. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2007 21:55:04 -0000 On 14/01/07, Grant Peel 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 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.