DNSCheck::Test::SOA(3)

NAME
DNSCheck::Test::SOA - Test SOA record

DESCRIPTION
Test the zone SOA record. The following tests are made:

•   The SOA record must exist.

•   Only ONE SOA record may exist.

•   SOA MNAME must exist as a valid hostname.

•   SOA MNAME does not have to be in the list of nameservers.

•   SOA MNAME does not have to be reachable.

•   SOA MNAME must be authoritative for the zone.

•   SOA RNAME must have a valid syntax .

•   SOA RNAME address should be deliverable.

•   SOA TTL should be at least 1 hour.

•   SOA 'refresh' should be at least 4 hours.

•   SOA 'retry' should be lower than SOA 'refresh'.

•   SOA 'retry' shoule be at least 1 hour.

•   SOA 'expire' should be at least 7 days.

•   SOA 'expire' should be at least 7 times SOA 'refresh'.

•   SOA 'minimum' should be less than 1 day.

METHODS

->test($zonename)
    Runs all the tests specified above.

->test_soa_existence($zonename)
    Tests that one and only one SOA record exists.

->test_soa_mname($soapacket, $zonename)
    Runs the MNAME-related tests.

    $soapacket must be a Net::DNS::RR::SOA object suitably filled in.

->test_soa_rname($soapacket, $zonename)
    Runs the RNAME-related tests.

->test_soa_values($soapacket, $zonename)
    Runs the tests checking the values in the given SOA record.

->mname_is_ns(@nslist)
    Internal utility method.

SEE ALSO
DNSCheck, DNSCheck::Logger, DNSCheck::Test::Host, DNSCheck::Test::Mail