Hi Sluggers:

When I run a script via browser to get the domain name of a website I use
$ENV{'HTTP_HOST'}.

How do I get the same domain name from the command line ?

I have tried

use Net::Domain qw(hostname hostfqdn hostdomain);

But the contents of hostdomain is returning the actual server's hostdomain
portion. What I want is the domain name for the web site where I ran the
script from that site and not the server's host domain.

Thanks.

-- 
I'm always learning something new everyday. Thanks Sluggers.
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to