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

__construct(ConfigurationManager $config)

No description

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

Parameters

ConfigurationManager $config

ValidationResult validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)

Validates CDS record content

Parameters

string $content

The content part of the record

string $name

The name part of the record

mixed $prio

The priority value (if applicable)

int|string|null $ttl

The TTL value

int $defaultTTL

The default TTL to use if not specified

mixed ...$args

Additional validator-specific parameters

Return Value

ValidationResult

ValidationResult containing validated data or error messages