On Tue, Sep 21, 2004 at 03:04:40PM -0400, Greg London wrote:
> Is there a way to figure out who is hosting a given webaddress?
> This  http://www.allwhois.com/   gives the public contact
> information for a website, but that is currently not getting
> any result for a problem. A suggestion was to contact the
> company hosting the site and see if they might do something
> about it, rather than resorting to expensive alternatives.

traceroute or mtr;
whois $ipaddress;
or my as_check script which spits out information about the netblock:

  #!/usr/local/bin/perl
  # see http://routeviews.org/

  use strict;
  use warnings;

  use Net::DNS;

  my $doWhois = shift(@ARGV);
  my $IP = shift(@ARGV);

  ($IP, $doWhois) = ($doWhois, '') if(!$IP);

  die("$0 [-v] ip.add.re.ss\n\n") if(!$IP);

  my($ASN, $network, $network_bits) = @{
      Net::DNS::Resolver->new()
      ->query(
          join('.', reverse(split(/\./, $IP))).".asn.routeviews.org",
          "TXT",
          "IN"
      )->{answer}->[0]->{char_str_list}
  };

  print "AS:\t$ASN\nnet:\t$network/$network_bits\n";
  print "\n".`whois -h whois.radb.net as$ASN` if($doWhois eq '-v');


> Please reply off-list.

No.  I would hope that some other people find this useful.

-- 
David Cantrell | Hero of the Information Age

  This is nice.  Any idea what body-part it is?
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to