amuck-landowner

Shell command to query ARIN for CIDRs from SAN

tonyg

New Member
Does anyone have a shell command to query the ARIN whois server for a list of CIDRs that belong to a SAN.

I just can't seem to find the correct switches.

In other words, something along the lines of (this obviously does not work):

whois -h whois.arin.net -T route ASXXXXX
 

rds100

New Member
Verified Provider
I think ARIN puts route objects in rr.arin.net instead of whois.arin.net, but even then not many ARIN members seem to care about creating route objects there.
 

Wintereise

New Member
ARIN's IRR db is very, very sparsely populated.

For people caring about IRR at all, querying RADB is probably your best bet.

You can also use the RIPE RIS API if you want to know the prefixes actually announced instead of registered, works very well.
 

InertiaNetworks-Ryan

New Member
Verified Provider
Use ARIN's scripts to do a whois. http://projects.arin.net/arinr/arincli.7.html- Use the "arininfo" script.

Note the script does require Ruby. You'll get an like what you see below.

Code:
# ./arininfo as62639

# ARINcli v.0.6.0
# Assuming query value is ASNUMBER

 Autonomous System Handle:  AS62639
   Autonomous System Name:  CRISSIC
          Start AS Number:  62639
            End AS Number:  62639
      Organization Handle:  CSL-161
        Organization Name:  Crissic Solutions, LLC
        Registration Date:  Fri, 26 Jul 2013 19:14:59 +0000
         Last Update Date:  Wed, 27 Nov 2013 20:48:31 +0000
        Comment (line  0):  Addresses in this block are statically assigned. Ple

# Use "arininfo -h" for help.
 
Top
amuck-landowner