DNSCheck::Lookup::ASN(3)

NAME
DNSCheck::Lookup::ASN - AS Number Lookup

DESCRIPTION
Helper functions for looking up AS (Autonomous System) numbers using asn.cymru.com.

METHODS

  asdata($ip)
Looks up the AS annoucement information for the given IP address. IPv4 and IPv6 are supported. The return value is a list with zero or more entries, which are in turn references to two-element arrays. The first element is another array reference, to a list of AS numbers. The second element is a Net::IP object specifying the largest prefix in which the request IP was announced (and which the given AS numbers refer to).

  flush()
Discard all cached lookups.

  new($parent)
This is not meant to be called directly. Get an object by calling the DNSCheck::asn() method instead;

  parent()
Returns a reference to the current parent object.

EXAMPLES
    use DNSCheck;

    my $asn    = DNSCheck->new->asn;

    $asn->lookup("64.233.183.99");

SEE ALSO
DNSCheck