octodns.zone.srv

Classes

SrvTargetNotCnameZoneValidator(id[, sets])

Checks that SRV records do not point to targets that are CNAMEs within the same zone.

SrvTargetResolvableInZoneZoneValidator(id[, ...])

Checks that SRV targets pointing to targets within the same zone have corresponding address records.

class octodns.zone.srv.SrvTargetNotCnameZoneValidator(id, sets=None)[source]

Bases: ZoneValidator

Checks that SRV records do not point to targets that are CNAMEs within the same zone. Per RFC 2782, the SRV target must be an A/AAAA record, not a CNAME.

validate(zone)[source]

Validate a fully populated zone.

Parameters:

zone – The Zone to validate.

Returns:

list[ValidationReason] of reason objects; empty when valid.

class octodns.zone.srv.SrvTargetResolvableInZoneZoneValidator(id, sets=None)[source]

Bases: ZoneValidator

Checks that SRV targets pointing to targets within the same zone have corresponding address records.

validate(zone)[source]

Validate a fully populated zone.

Parameters:

zone – The Zone to validate.

Returns:

list[ValidationReason] of reason objects; empty when valid.