From owner-freebsd-questions Thu Nov 19 14:04:33 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA25615 for freebsd-questions-outgoing; Thu, 19 Nov 1998 14:04:33 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from resnet.uoregon.edu (resnet.uoregon.edu [128.223.144.32]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA25604 for ; Thu, 19 Nov 1998 14:04:24 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Received: from localhost (dwhite@localhost) by resnet.uoregon.edu (8.8.8/8.8.8) with ESMTP id OAA14236; Thu, 19 Nov 1998 14:03:48 -0800 (PST) (envelope-from dwhite@resnet.uoregon.edu) Date: Thu, 19 Nov 1998 14:03:47 -0800 (PST) From: Doug White To: Chuck cc: freebsd-questions@FreeBSD.ORG Subject: Re: Another Question... In-Reply-To: <36541794.67E8BCA7@wave.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, 19 Nov 1998, Chuck wrote: > I have a server on the net that I just set up... It's running some perl > scripts that are part of a chat program... The scripts use a variable > $ENV{'REMOTE_HOST'} to find out the domain name of the remote host... > For some reason ( I'm sure it's something I did wrong ) I can only get > the domain numbers and not the domain name to show up... Any Ideas?? When you say 'domain numbers', do you mean IP address? If you need the name use gethostbyaddr() to look up the corresponding name. (I think that's a valid Perl function...) Doug White Internet: dwhite@resnet.uoregon.edu | FreeBSD: The Power to Serve http://gladstone.uoregon.edu/~dwhite | www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message