[olug] get web server host name

Jay Hannah jay at jays.net
Fri Apr 11 00:48:48 UTC 2008


On Apr 10, 2008, at 2:26 PM, Mr Scsi wrote:
> Anyone have any quick and dirty perl ways to get the name of the  
> server that
> serviced a http request?

What? Are you just wanting to resolve DNS? use Net::DNS?

http://search.cpan.org/~olaf/Net-DNS-0.63/lib/Net/DNS.pm

HTH,

j
Omaha Perl Mongers: http://omaha.pm.org





More information about the OLUG mailing list