Index of /files/code/ipin

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[   ]ipin-3.1.pl 2011-11-14 21:28 4.9K 
[   ]ipin-3.2.pl 2013-12-30 13:53 4.9K 
[   ]ipin.pl 2013-12-30 13:53 4.9K 

Probably the worst Perl code I've ever written, but this is pretty
useful.  Uses Route Views and Team Cymru's DNS services to get ASN and
prefix information for an IPv4/IPv6 address or hostname.  Here's an
example:

(dax:21:34)% ipin ipv6.google.com.
  AAAA record #1
6 Address: 2001:4860:800f::93
6 PTR: iad04s01-in-x93.1e100.net.
6 Prefix: 2001:4860::/32
6 Origin: AS15169 [GOOGLE - Google Inc.]

And another one:

(dax:21:39)% ipin 128.113.24.91
4 Address: 128.113.24.91
4 PTR: freefour.acs.rpi.edu.
4 Prefix: 128.113.0.0/16
4 Origin: AS91 [RPI-AS - Rensselaer Polytechnic Institute]

And here's a great example that shows how stupid multiple PTR records look:

(dax:21:33)% ipin apple.com.
  A record #1
4 Address: 17.172.224.47
4 PTR: st11p01ww-apple.apple.com.
4 PTR: apple.com.
4 Prefix: 17.168.0.0/13
4 Origin: AS714 [APPLE Apple Inc]
  A record #2
4 Address: 17.149.160.49
4 PTR: apple-darwin.com.
4 PTR: apple-darwin.net.
4 PTR: apple-darwin.org.
4 PTR: buydifferent.net.
4 PTR: buydifferent.org.
4 PTR: carbondating.com.
4 PTR: darwinsource.com.
4 PTR: darwinsource.org.
4 PTR: desktopmovie.com.
4 PTR: desktopmovie.net.
4 PTR: desktopmovie.org.
4 PTR: dvdstudiopro.us.
4 PTR: dvdstudiopro.biz.
4 PTR: dvdstudiopro.com.
4 PTR: dvdstudiopro.net.
4 PTR: dvdstudiopro.org.
4 PTR: dvdstudiopro.info.
4 PTR: edu-research.org.
4 PTR: ibookpartner.com.
4 PTR: rip-mix-burn.com.
4 PTR: applefilmaker.com.
4 PTR: buy-different.com.
4 PTR: buy-different.net.
4 PTR: buy-different.org.
4 PTR: desktopmovies.net.
4 PTR: desktopmovies.org.
4 PTR: imoviegallery.com.
4 PTR: imovietheater.com.
4 PTR: playquicktime.com.
4 PTR: playquicktime.net.
4 PTR: shopdifferent.net.
4 PTR: shopdifferent.org.
4 PTR: theapplestore.us.
4 PTR: applefilmmaker.com.
4 PTR: appleiservices.com.
4 PTR: shop-different.com.
4 PTR: shop-different.net.
4 PTR: shop-different.org.
4 PTR: thinkdifferent.com.
4 PTR: universityarts.com.
4 PTR: velocityengine.com.
4 PTR: braeburncapital.com.
4 PTR: insidemacintosh.com.
4 PTR: streamquicktime.com.
4 PTR: streamquicktime.net.
4 PTR: velocity-engine.com.
4 PTR: darwinsourcecode.com.
4 PTR: developercentral.com.
4 PTR: publishingsurvey.com.
4 PTR: publishingsurvey.org.
4 PTR: applecomputerimac.com.
4 PTR: macintoshsoftware.com.
4 PTR: publishing-survey.com.
4 PTR: publishing-survey.org.
4 PTR: applecomputer-imac.com.
4 PTR: imac-applecomputer.com.
4 PTR: publishingresearch.com.
4 PTR: publishingresearch.org.
4 PTR: quicktimestreaming.com.
4 PTR: quicktimestreaming.net.
4 PTR: publishing-research.com.
4 PTR: publishing-research.org.
4 PTR: applefinalcutproworld.com.
4 PTR: applefinalcutproworld.net.
4 PTR: applefinalcutproworld.org.
4 PTR: next.com.
4 PTR: qtml.com.
4 PTR: qttv.net.
4 PTR: apple.com.
4 PTR: apple.info.
4 PTR: ikids.com.
4 PTR: qt-tv.net.
4 PTR: carbon.com.
4 PTR: eworld.com.
4 PTR: machos.net.
4 PTR: newton.com.
4 PTR: xserve.com.
4 PTR: xserve.net.
4 PTR: buyaapl.com.
4 PTR: buyaapl.net.
4 PTR: buyaple.com.
4 PTR: buyaple.net.
4 PTR: geoport.com.
4 PTR: ischool.com.
4 PTR: mach-os.com.
4 PTR: mach-os.net.
4 PTR: macmate.com.
4 PTR: mammals.org.
4 PTR: myapple.net.
4 PTR: applexpo.com.
4 PTR: applexpo.net.
4 PTR: firewire.cl.
4 PTR: firewire.org.
4 PTR: imacshop.net.
4 PTR: macreach.com.
4 PTR: macreach.net.
4 PTR: apple-inc.net.
4 PTR: applecare.cc.
4 PTR: carbonapi.com.
4 PTR: macintosh.cl.
4 PTR: nwk-apple.apple.com.
4 PTR: powerbook.cc.
4 PTR: quicktime.cc.
4 PTR: yourapple.com.
4 PTR: appleenews.com.
4 PTR: applereach.com.
4 PTR: applereach.net.
4 PTR: applestore.us.
4 PTR: applestore.net.
4 PTR: carbontest.com.
4 PTR: darwincode.com.
4 PTR: digitalhub.com.
4 PTR: imac-apple.com.
4 PTR: imoviefest.com.
4 PTR: ripmixburn.com.
4 PTR: apple-enews.com.
4 PTR: applecarbon.com.
4 PTR: appledarwin.com.
4 PTR: appledarwin.net.
4 PTR: appledarwin.org.
4 PTR: expertapple.com.
4 PTR: imacsources.com.
4 PTR: imoviestage.com.
4 PTR: theatermode.com.
4 PTR: theatremode.com.
4 Prefix: 17.148.0.0/14
4 Origin: AS714 [APPLE Apple Inc]