Link to home
Start Free TrialLog in
Avatar of Martin
MartinFlag for Sweden

asked on

$ENV{'REMOTE_HOST'} is not availible in IIS.

When I try to get $ENV{'REMOTE_HOST'} in my Perl-script it only returns the IP-address. Why? I use Internet Information Server. Is it some kind of setting needed to enable the DNS lookup?
Avatar of ian010997
ian010997

Yes, if your http server is not set up to do the logical
name lookup for you, then you will receive the IP address.
Or if it cannot give you the logical name, then it could
also give you the IP address.  I like to just use the
REMOTE_ADDR and do the lookup myself in my code when needed,
since it makes the http server faster if it doesn't have
do the lookup on the logical address for every page served.
Avatar of Martin

ASKER

I wanted to know how I turned this setting on!
ASKER CERTIFIED SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial