Date: Thu, 19 Nov 1998 14:03:47 -0800 (PST) From: Doug White <dwhite@resnet.uoregon.edu> To: Chuck <chuckw@wave.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Another Question... Message-ID: <Pine.BSF.4.03.9811191403030.1722-100000@resnet.uoregon.edu> In-Reply-To: <36541794.67E8BCA7@wave.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.03.9811191403030.1722-100000>