Scroll to navigation

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

NAME

Zonemaster::Test::Basic - module implementing test for very basic domain functionality

SYNOPSIS

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

METHODS

Runs between one and three tests, depending on the zone. If basic01 passes, basic02 is run. If basic02 fails, basic03 is run.
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 reference to a hash with translation data. Used by the builtin translation system.
Returns a version string for the module.
Looks at the provided log entries and returns true if they indicate that further testing of the relevant zone is possible.

TESTS

Checks if the domain name to be tested is valid. Not all syntax tests are done here, it "just" checks domain name total length and labels length. In case of failure, all other tests are aborted.
Checks that we can find a parent zone for the zone we're testing. If we can't, no further testing is done.
Checks that the nameservers for the parent zone returns NS records for the tested zone, and that at least one of the nameservers thus pointed out responds sensibly to an NS query for the tested zone.
Checks if at least one of the nameservers pointed out by the parent zone gives a useful response when sent an A query for the "www" label in the tested zone (that is, if we're testing "example.org" this test will as for A records for "www.example.org"). This test is only run if the basic02 test has failed.
2021-01-06 perl v5.32.0