class RESINFORecordValidator implements DnsRecordValidatorInterface (View source)

RESINFO (Resolver Information) record validator

Validates RESINFO records according to RFC 9606. RESINFO uses the same wire format as TXT (one or more character-strings) but conveys resolver capabilities such as "qnamemin" or "exterr=15-17". Each character-string must be quoted and is limited to 255 bytes (DNS character-string limit).

Supported by PowerDNS Authoritative from 5.1.

Example: "qnamemin exterr=15-17"

Methods

__construct(ConfigurationManager $config)

No description

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

Validate a DNS record

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)

Validate a DNS record

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