North American Network Operators Group|
Date Prev | Date Next |
Date Index |
Thread Index |
Author Index |
Re: IP Prefixes are allocated ..
- From: Christopher L. Morrow
- Date: Mon Nov 28 02:27:06 2005
On Mon, 28 Nov 2005, Florian Weimer wrote:
> * Christopher L. Morrow:
> > he might be satisfied with:
> > mail.pch.net. 86400 IN A 188.8.131.52
> > :~> host -W 6 -R 10 -t txt 184.108.40.206.asn.routeviews.org
> > 220.127.116.11.asn.routeviews.org text "3856" "18.104.22.168" "22"
> > which is AS 3856 routing 22.214.171.124/22 ... which contains the /32
> > above.
> asn.routeviews.org doesn't do longest-prefix matching, so you need a
> short Perl script to get the correct ASN, attached below. However,
which means host -t txt <ip> will return more than one record, yes? so he
can just scan for the longest length in the return? (I am assuming he's
not putting this into some gianormous automated monstrosity of course)