Hi All,
  I'm sure this is an easy one to those in the know. Basically I want to code a script that checks a remote webserver by domain name and returns what data it can. I've seen scripts doing this such as:-
http://whois.domaintools.com/cosmicperl.com
I know how to grab the page with LWP, and I could figure out how to get the DMOZ listings, etc. But what I have no clue about is the "Server Data" section, which for the example site contains:-
Server Data
Server Type: Apache/2.0.54 (Fedora)
IP Address: 213.133.65.182
IP Location United Kingdom - United Kingdom - Netsight Internet Solutions Ltd
Response Code: 200
Blacklist Status: Clear
SSL Cert: localhost.localdomain SSL Certificate has expired.
Domain Status: Registered And Active Website

I know it's GeoIP for the IP location, but how is it telling the server type? SSL cert? And forgive me for being stupid but right now I can't remember how to get an IP from a domain name.

Thanks in advance

In reply to Getting Remote server info?? by cosmicperl

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.