class DLVRecordValidator implements DnsRecordValidatorInterface (View source)

Validator for DLV (DNSSEC Lookaside Validation) DNS records

IMPORTANT: DLV records have been obsoleted by RFC 8749 (March 2020). Both RFC 4431 and RFC 5074 that defined DLV are now classified as Historic. Major DNS resolvers like BIND 9.16+ and Unbound have removed or deprecated DLV support.

This validator is maintained for backward compatibility with older systems that might still use DLV records. However, DLV records should not be used for new deployments.

DLV records have the same format as DS records: but were used for validating DNSSEC outside the standard delegation hierarchy.

Methods

__construct(ConfigurationManager $config)

Constructor

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

Validate DLV record

validateDLVContent(string $content)

Validate DLV record content format DLV has the same format as DS records: as defined in RFC 4431 and RFC 5074.

Details

__construct(ConfigurationManager $config)

Constructor

Parameters

ConfigurationManager $config

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

Validate DLV record

Note that DLV records are obsolete according to RFC 8749, but this validator is maintained for backward compatibility.

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

ValidationResult validateDLVContent(string $content)

Validate DLV record content format DLV has the same format as DS records: as defined in RFC 4431 and RFC 5074.

Parameters

string $content

DLV record content

Return Value

ValidationResult

Validation result with success or error message