class WALLETRecordValidator implements DnsRecordValidatorInterface (View source)

WALLET record validator

Validates WALLET records as understood by PowerDNS Authoritative 5.1+. WALLET uses the DNS wire format (the same as TXT), conventionally carrying a " " pair, e.g. "BTC bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh".

The wire format itself accepts any quoted character-strings. This validator enforces the wire format strictly and emits a warning if the payload does not match the conventional "

" shape, leaving room for future spec evolution without rejecting otherwise-valid records.

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