Scroll to navigation

Zonemaster::Engine::ASNLookup(3pm) User Contributed Perl Documentation Zonemaster::Engine::ASNLookup(3pm)

NAME

Zonemaster::Engine::ASNLookup - do lookups of ASNs for IP addresses

SYNOPSIS

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

FUNCTION

Takes a string (or a Net::IP::XS 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.
As get(), except it returns a list of a reference to a list with the AS numbers, and a Net::IP::XS object representing the prefix of the AS.
2023-03-04 perl v5.36.0