SVCBRecordValidator
class SVCBRecordValidator implements DnsRecordValidatorInterface (View source)
SVCB record validator
Validates SVCB (Service Binding) records according to:
- RFC 9460: Service Binding and Parameter Specification via the DNS (DNS SVCB and HTTPS Resource Records)
SVCB records are the general variant of HTTPS records, allowing service binding for any protocol.
Format:
Methods
No description
Validates SVCB record content
keyNNNNN form of a SvcParam key; the number is 16 bits. key0 to key6 have names in every supported PowerDNS, which reads those numbers in wire format, so they must be written by name.
Comma-separated 16-bit numbers, the form PowerDNS reads tls-supported-groups in.
PowerDNS cannot load a record whose ech value does not decode as base64.
Details
__construct(HostnameValidator $hostnameValidator, IPAddressValidator|null $ipValidator = null, Closure|null $svcParamSupported = null)
No description
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates SVCB record content
SVCB records have the format:
static bool
isGenericKey(string $key)
keyNNNNN form of a SvcParam key; the number is 16 bits. key0 to key6 have names in every supported PowerDNS, which reads those numbers in wire format, so they must be written by name.
static bool
isUint16List(string $value)
Comma-separated 16-bit numbers, the form PowerDNS reads tls-supported-groups in.
static bool
isBase64(string $value)
PowerDNS cannot load a record whose ech value does not decode as base64.