NAME
Zonemaster::Zone - Object representing a DNS zone
SYNOPSIS
my $zone = Zonemaster::Zone->new({ name => 'nic.se' });
my $packet = $zone->parent->query_one($zone->name, 'NS');
ATTRIBUTES
- name
-
A Zonemaster::DNSName object representing the name of the zone.
- parent
-
A Zonemaster::Zone object for this domain's parent domain.
- ns
-
A reference to an array of Zonemaster::Nameserver objects for the domain. The list is based on the NS records returned from a query to the first listed glue server for the domain.
- glue
-
A reference to an array of Zonemaster::Nameserver objects for the domain. The list is based on the NS records returned from a query to the first listed nameserver for the parent domain.
- glue_addresses
-
A list of Net::LDNS::RR::A and Net::LDNS::RR::AAAA records returned in the Additional section of an NS query to the first listed nameserver for the parent domain.
METHODS
- query_one($name[, $type[, $flags]])
-
Sends (or retrieves from cache) a query for the given name, type and flags sent to the first nameserver in the zone's ns list. If there is a response, it will be returned in a Zonemaster::Packet object. If the type arguments is not given, it defaults to 'A'. If the flags are not given, they default to
class
IN anddnssec
,usevc
andrecurse
according to configuration (which is by default off on all three). - query_all($name, $type, $flags)
-
Sends (or retrieves from cache) queries to all the nameservers listed in the zone's ns list, and returns a reference to an array with the responses. The responses can be either Zonemaster::Packet objects or
undef
values. The arguments are the same as for query_one. - is_in_zone($name)
-
Returns true if the given name is in the zone, false if not.