CDSRecordValidator
class CDSRecordValidator implements DnsRecordValidatorInterface (View source)
CDS (Child DS) record validator
CDS records are defined in RFC 7344 and RFC 8078 to facilitate automated DNSSEC delegation trust maintenance. These records allow child zones to signal to parent zones which DS records should be published.
Format:
- key-tag: 16-bit numerical identifier (0-65535)
- algorithm: DNSSEC algorithm number (1-16 as defined in RFC 8624)
- digest-type: Hash algorithm used (1=SHA-1, 2=SHA-256, 4=SHA-384)
- digest: Hexadecimal representation of the hash with length based on digest type
- SHA-1: 40 hex characters
- SHA-256: 64 hex characters
- SHA-384: 96 hex characters
Special case for deletion: "0 0 0 00" (RFC 8078)
Methods
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates CDS record content
Details
__construct(ConfigurationManager $config)
No description
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates CDS record content