Scroll to navigation

Zonemaster::Engine::Constants(3pm) User Contributed Perl Documentation Zonemaster::Engine::Constants(3pm)

NAME

Zonemaster::Engine::Constants - module holding constants used in Test modules

SYNOPSIS

   use Zonemaster::Engine::Constants ':all';

EXPORTED GROUPS

All exportable names.
DNSSEC algorithms.
Label and name lengths.
IP version constants.
SOA values limits.
Other, uncategorized export names, e.g. UDP payload limit and minimum number of name servers per zone.
Address classes for IPv4 and IPv6.

EXPORTED NAMES

  • $ALGO_STATUS_DEPRECATED
  • $ALGO_STATUS_PRIVATE
  • $ALGO_STATUS_RESERVED
  • $ALGO_STATUS_UNASSIGNED
  • $ALGO_STATUS_OTHER
  • $ALGO_STATUS_NOT_RECOMMENDED
  • $ALGO_STATUS_NOT_ZONE_SIGN
  • $DURATION_5_MINUTES_IN_SECONDS
  • $DURATION_1_HOUR_IN_SECONDS
  • $DURATION_4_HOURS_IN_SECONDS
  • $DURATION_12_HOURS_IN_SECONDS
  • $DURATION_1_DAY_IN_SECONDS
  • $DURATION_1_WEEK_IN_SECONDS
  • $DURATION_180_DAYS_IN_SECONDS
  • $FQDN_MAX_LENGTH
  • $LABEL_MAX_LENGTH
  • $IP_VERSION_4
  • $IP_VERSION_6
  • $SERIAL_BITS

    An integer, used to define the size of the serial number space, as defined in RFC1982, section 2.

  • $SERIAL_MAX_VARIATION
  • $MINIMUM_NUMBER_OF_NAMESERVERS
  • $UDP_PAYLOAD_LIMIT
  • $UDP_EDNS_QUERY_DEFAULT

    An integer, used to define the EDNS0 UDP packet size in EDNS queries.

  • $UDP_COMMON_EDNS_LIMIT
  • @IPV4_SPECIAL_ADDRESSES
  • @IPV6_SPECIAL_ADDRESSES

METHODS

_extract_iana_ip_blocks()
    my @array = _extract_iana_ip_blocks( $ip_version );
    

Internal method that is used to extract IP blocks details from IANA files for a given IP version (i.e. 4 or 6).

Takes an integer (IP version).

Returns a list of hashes - the keys of which are "ip" (Net::IP::XS object), "name" (string) and "reference" (string).

2024-04-22 perl v5.38.2