Zonemaster::ASNLookup(3pm)

Zonemaster::ASNLookup3pm

Do lookups of asns for ip addresses

Usage

   my ($asnref, $prefix) = Zonemaster::ASNLookup->get_with_prefix( '8.8.4.4' );
   my $asnref = Zonemaster::ASNLookup->get( '192.168.0.1' );

Function

get($addr)

Takes a string (or a Net::IP object) with a single IP address, does a lookup in a Cymru-style DNS zone and returns a list of AS numbers for the address, if any can be found.

get_with_prefix($addr)

As get(), except it returns a list of a reference to a list with the AS numbers, and a Net::IP object representing the prefix of the AS.

Releases

3 releases since Debian 9 (Stretch); the text changed 2 times.

  1. 9
  2. 10
  3. 11

From libzonemaster-perl 1.0.16-2.1 in Debian 11 (Bullseye). Parsed by carta from the page's man source.