NAME
Zonemaster::ASNLookup - do lookups of ASNs for IP addresses
SYNOPSIS
my ($asn, $prefix) = Zonemaster::ASNLookup->get( '8.8.4.4' );
my $other_asn = 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 the AS number for the address, if one can be found.
- get_with_prefix($addr)
-
As get(), except it returns a list of the AS number and a Net::IP object representing the prefix of the AS.