Scroll to navigation

Zonemaster::Test::Syntax(3pm) User Contributed Perl Documentation Zonemaster::Test::Syntax(3pm)

NAME

Zonemaster::Test::Syntax - test validating the syntax of host names and other data

SYNOPSIS

    my @results = Zonemaster::Test::Syntax->all($zone);

METHODS

Runs the default set of tests and returns a list of log entries made by the tests.
Returns a reference to a hash with translation data. Used by the builtin translation system.
Returns a reference to a hash, the keys of which are the names of all test methods in the module, and the corresponding values are references to lists with all the tags that the method can use in log entries.
Returns a version string for the module.

TESTS

Verifies that the name (Zonemaster::DNSName) given contains only allowed characters.
Verifies that the name (Zonemaster::DNSName) given does not start or end with a hyphen ('-').
Verifies that the name (Zonemaster::DNSName) given does not contain a hyphen in 3rd and 4th position (in the exception of 'xn--').
Verify that a nameserver (Zonemaster::DNSName) given is conform to previous syntax rules. It also verify name total length as well as labels.
Verify that a SOA rname (Zonemaster::DNSName) given has a conform usage of at sign (@).
Verify that a SOA rname (Zonemaster::DNSName) given is RFC822 compliant.
Verify that SOA mname of zone given is conform to previous syntax rules (syntax01, syntax02, syntax03). It also verify name total length as well as labels.
Verify that MX name (Zonemaster::DNSName) given is conform to previous syntax rules (syntax01, syntax02, syntax03). It also verify name total length as well as labels.

INTERNAL METHODS

Converts argument to a Zonemaster::DNSName object.
Implementation of some tests that are used on several kinds of input.
2022-06-28 perl v5.34.0