aa197
04-19-2001, 12:54 PM
Some places say I should others so no.
Also when ever I use the variable $ENV{'REMOTE_HOST'} in perl it gives nothing.
Also when ever I use the variable $ENV{'REMOTE_HOST'} in perl it gives nothing.
![]() | View Full Version : Should I set up reverse DNS? aa197 04-19-2001, 12:54 PM Some places say I should others so no. Also when ever I use the variable $ENV{'REMOTE_HOST'} in perl it gives nothing. vizi 04-19-2001, 01:38 PM I definitely recommend you setup reverse DNS. As far as your problem with perl, I never herd of that problem. Maybe you have an error in your code? aa197 04-19-2001, 01:52 PM Ok, thanks for the reverse DNS help. As for my code, it is the same code I used on my old server. It also works on my local machine. qasic 04-20-2001, 01:01 AM $ENV{'REMOTE_HOST'} is not supported on all servers. This may be why. qasic vizi 04-20-2001, 03:53 AM Originally posted by qasic $ENV{'REMOTE_HOST'} is not supported on all servers. This may be why. qasic I thought Perl on every machine supported this. Does it have to do with the Perl version or do some server os'es unplug that comman? dabystru 04-20-2001, 04:12 AM REMOTE_HOST is environment variable defined by CGI version 1.1. It has nothing to do with Perl. Is there is no environment variable called REMOTE_HOST, $ENV{'REMOTE_HOST'} produces no result. vizi 04-20-2001, 04:16 AM I see. Thanks for clarifying this. Voodoo Web 04-23-2001, 03:01 AM You have to turn on your HostNameLookup in your Apache config (I don't know other webservers) to get the REMOTE_HOST. Without it the IP of the client is stored in REMOTE_ADDR. - domi aa197 04-23-2001, 09:40 AM Thanks, I just figured it out yesterday. |