NAME
InternetData::AsnResult - what an AS lookup answers
SYNOPSIS
my $as = $client->lookup_asn(9009);
$as->asn; # 9009
$as->name; # 'M247 Europe SRL'
$as->type; # 'hosting', or undef when your plan omits it
$as->has('prefixes'); # 1 if your plan carries it at all
DESCRIPTION
Absent is not false here either: a member your plan does not include has no key at all, so read it with has or //, as "ABSENT IS NOT FALSE" in InternetData::Result explains.
METHODS
asn, name, country, registry, allocated, domain
On every answer, with a key or without one: the AS number, its operator, the country and registry that allocated it, when, and the operator's domain.
type, num_ips, num_prefixes4, num_prefixes6, rpki_valid, rpki_invalid, rpki_not_found
Paid: the kind of network it runs, the IPv4 addresses and the prefixes it announces, and how many of its announcements RPKI calls valid, invalid or unrecorded. undef when your plan omits them.
whois, prefixes
Paid: the AS's WHOIS record as a hash reference of strings, and the prefixes it announces as an array reference, each a hash reference with prefix, peer_count, rpki_status, first_seen, country, size and other_origins.
rank, tier1
Paid: its rank in ASN Extended by customer cone, 1 the largest and 0 for an AS seen in no AS path, and 1 when it is one of the transit-free networks at the top of the hierarchy, 0 when it is not.
num_upstreams, upstreams, num_peers, peers, num_downstreams, downstreams
Paid: how many AS numbers it gets transit from, exchanges routes with and provides transit to, and each list of them as an array reference of integers, ascending, up to 20000.
hosted_domains
Paid: a hash reference with total, how many registered domains it hosts, and domains, an array reference of the 10 most popular.
trial_expired
On answers to a key on the free plan only, as on InternetData::Result.
cap_reached
On answers to a key on a paid plan only, as on InternetData::Result.
has($field), fields, raw
As on InternetData::Result.