[120348] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: IP to authoritative CIDR webservices

daemon@ATHENA.MIT.EDU (Christopher Morrow)
Wed Dec 16 23:26:41 2009

In-Reply-To: <1260854303.6328.36.camel@petrie>
Date: Wed, 16 Dec 2009 23:25:56 -0500
From: Christopher Morrow <morrowc.lists@gmail.com>
To: William Pitcock <nenolod@systeminplace.net>
Cc: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

On Tue, Dec 15, 2009 at 12:18 AM, William Pitcock
<nenolod@systeminplace.net> wrote:
> Hi,
>
> On Mon, 2009-12-14 at 21:12 -0800, Paul Ferguson wrote:
>> On Mon, Dec 14, 2009 at 8:57 PM, William Pitcock
>> <nenolod@systeminplace.net> wrote:
>>
>> > Hi,
>> >
>> > Does anyone know of a webservice that converts a given IP into the
>> > public CIDR range that belongs to? =A0I am developing a tool where IP =
to
>> > CIDR conversion based on RIR whois data would be useful for implementi=
ng
>> > filtersets.
>> >
>>
>> WHOIS?
>>
>> Alternatively, use the Team Cymru tool to find the AS, then the CIDR Rep=
ort
>> portal to determine all perfixes originated by the AS in question:
>>
>> http://asn.cymru.com/
>
> Looks like their WHOIS server in verbose mode will do the trick for what
> I want, as it provides predictable output. =A0Thank you.

there's also the lightish weight routeviews DNS zone data:
$ host -W 6 -R 10 -t txt 50.35.2.128.asn.routeviews.org
50.35.2.128.asn.routeviews.org descriptive text "9" "128.2.0.0" "16"

128.2.35.50 lives in 128.2.0.0/16 from ASN9

-chris
(thanks to joe/joel/dmm and capitan kemp)


home help back first fref pref prev next nref lref last post