From: Randy Bush <randy@psg.com> Date: Mon, 14 Apr 2003 06:01:07 -0700 Sender: owner-nanog@merit.edu
irr whois servers seem to vary a bit. is there one simple query that, given an as-macro or aut-num, produces the list of prefixes one should accept?
Randy, A part of the IIRToolSet is peval(1) which does exactly what you ask. It can expand an as-set or an aut-num object in a single call. For the RADB servers it works fine. For the current RIPE software just add "-protocol bird" to the command. % peval -h whois.ripe.net -protocol bird AS-CERN ({194.12.128.0/21, 193.110.95.0/24, 192.91.246.0/24, 192.91.244.0/23, 192.91.245.0/24, 192.91.240.0/22, 192.91.236.0/22, 192.91.236.0/24, 192.91.237.0/24, 192.91.238.0/24, 192.91.239.0/24, 192.65.196.0/23, 192.65.192.0/22, 192.65.184.0/21, 192.65.183.0/24, 192.16.166.0/24, 192.16.164.0/23, 192.16.160.0/22, 192.16.156.0/22, 192.16.155.0/24, 158.232.0.0/16, 137.138.0.0/16, 128.142.0.0/16, 128.141.0.0/16}) IRRToolSet is a part of the FreeBSD ports collection and is currently at version 4.7.2. I maintain the port (but not the actual software), so please let me know if there are any problems. R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634