wolverina has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's minimum standard of quality and will not be displayed.

Replies are listed 'Best First'.
Re: identify host
by flyingmoose (Priest) on Mar 23, 2004 at 02:18 UTC
    is there a way to identify the host of a particular wetsite?
    Water and computers do not mix! This is not a good idea!

    Seriously, it sounds like you may be interested in whois records. Try something like Net::Whois

Re: identify host
by b10m (Vicar) on Mar 23, 2004 at 12:36 UTC

    I'm not sure what you mean with "identify the host of a particular website", but here are some possible answers to your question:

    (gwhois is really nice, and it's in Perl :)

    I want to know what kind of server the host is running on
    $ HEAD http://host/ | grep "Server"
    I want to know who registered a domain name
    $ gwhois domain.tld
    I want to know who owns the netblock of the IP in question
    $ gwhois www.xxx.yyy.zzz
    I want to lookup a country by IP address
    See Geo::IP
    --
    b10m

    All code is usually tested, but rarely trusted.
Re: identify host
by Vautrin (Hermit) on Mar 23, 2004 at 01:05 UTC

    What do you mean by host? Do you mean the hosting company, or the person who owns the web site, or the IP address, or what?


    Want to support the EFF and FSF by buying cool stuff? Click here.
Re: identify host
by Happy-the-monk (Canon) on Mar 23, 2004 at 01:37 UTC

    If you're looking for the hostname try out Sys::Hostname.

    If you know it's a unix box, chomp( my $hostname = qx/hostname/ ); might do the trick.

    Sören