NAME

InternetData::DomainResult - what a domain lookup answers

SYNOPSIS

my $domain = $client->lookup_domain('example.com');

$domain->is_registered;       # 1
$domain->has_mx;              # 1, 0
$domain->is_disposable;       # 0, or undef when your plan omits it
$domain->has('dns');          # 1 if your plan carries the records 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

domain, is_registered, has_a, has_aaaa, has_mx, has_ns, has_cname

On every answer, with a key or without one: the domain, whether it is registered, and whether it has each type of DNS record, 1 or 0.

is_disposable, disposable

Paid: whether the domain is in Disposable Domain, a throwaway email provider's, and the detail behind it, {} when it is not. undef when your plan omits them.

dns, ip_ranges

Paid: the records themselves (a, aaaa, mx, ns and cname, each an array reference), and the IP ranges its organization holds. undef when your plan omits them.

hosting, cohosted_domains

Paid: each address in dns.a and then dns.aaaa with the network announcing it ($domain->hosting->[0]{asn}{name}), and the other registered domains on its first IPv4 address (ip, total and up to 10 domains, the most popular first). undef when your plan omits them.

Paid: what our crawl last read of its home page (url, title, description, last_seen and the external hosts it links to), and the registered domains whose home page redirects or links to it (total and up to 10 domains, the most popular first). undef when your plan omits them.

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.