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

I wrote some code earlier this year using the Net::Whois::ARIN module. It would verify the organizatin that had registered an IP4v address against the ARIN database. It worked just find.

This morning tried it again, and no go. This error was returned:

can't connect to whois.arin.net[43]: IO::Socket::INET: connect: timeout at simparin.pl line 14.

Here is the code:

#!/usr/bin/perl -w use strict; use Net::Whois::ARIN; use Data::Dumper; my $who = Net::Whois::ARIN->new( host => 'whois.arin.net', port => 43, timeout => 30, ); if (!defined($ARGV[0])){ print "Usage: $0 [arin query]\n"; exit; } my @out = $who->query($ARGV[0]); foreach(@out){ print "$_\n"; }

What's up? Has support for this been disabled?

Replies are listed 'Best First'.
Re: Net::Whois::ARIN not responding
by Loops (Curate) on Jul 17, 2013 at 23:06 UTC

    Gave it a try and it worked fine here. Local DNS issue or other transient network issue on your end perhaps. Either that or you've been blacklisted by their server ;o)

      Could be accessing the internet via Comcast!
      Chaz Ubell "Running to stay in place"
        Thanks for the response. Also I apologize for the delay (traveling for the last few weeks).

        In any case, I found out why the code did not work. My company now blocks port 43. Oh well. :-(

        Moving my code over to the Restful API.

        Thanks again.

        Chaz Ubell "Running to stay in place"