Merit Network
Can't find what you're looking for? Search the Mail Archives.
  About Merit   Services   Network   Resources & Support   Network Research   News   Events   Home

Discussion Communities: Merit Network Email List Archives

North American Network Operators Group

Date Prev | Date Next | Date Index | Thread Index | Author Index | Historical

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       206.220.231.1
> >
> > :~> host -W 6 -R 10 -t txt  1.231.220.206.asn.routeviews.org
> > 1.231.220.206.asn.routeviews.org text "3856" "206.220.228.0" "22"
> >
> > which is AS 3856 routing 206.220.228.0/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)

-Chris




Discussion Communities


About Merit | Services | Network | Resources & Support | Network Research
News | Events | Contact | Site Map | Merit Network Home


Merit Network, Inc.