From owner-freebsd-questions@FreeBSD.ORG Sun Jan 14 12:25:58 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 1890F16A4C9 for ; Sun, 14 Jan 2007 12:25:58 +0000 (UTC) (envelope-from gpeel@thenetnow.com) Received: from thenetnow.com (thenetnow.com [69.90.69.141]) by mx1.freebsd.org (Postfix) with ESMTP id E7C9E13C442 for ; Sun, 14 Jan 2007 12:25:57 +0000 (UTC) (envelope-from gpeel@thenetnow.com) Received: from hpeel.ody.ca ([216.240.12.2] helo=GRANT) by constellation.thenetnow.com with esmtpa (Exim 4.54) id 1H64Qp-000LrM-Qt for freebsd-questions@freebsd.org; Sun, 14 Jan 2007 07:25:51 -0500 Message-ID: <007e01c737d7$20573170$6501a8c0@GRANT> From: "Grant Peel" To: Date: Sun, 14 Jan 2007 07:25:49 -0500 Organization: The Net Now MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Identifying a Remote Machine. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Grant Peel List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Jan 2007 12:25:58 -0000 Hi all, Try not to laugh too hard here .... I have several servers, each with hundreds of IPs on them. I am attempting to write a php script that will connect to each ip and = identify the 'hostname' as set in rc.conf. I have been looking at icmp, env etc, and can't find a method. I was = also loioking at ping, but it does not show the hostname. The only reply I need from the server is the hostname. That will tell ne = that the IP is live and what machine its on. Is there any suggestions? -Grant