class HTTPSRecordValidator implements DnsRecordValidatorInterface (View source)

HTTPS record validator

Validates HTTPS records according to:

  • RFC 9460: Service Binding and Parameter Specification via the DNS (DNS SVCB and HTTPS Resource Records)

HTTPS records have the same format as SVCB but are specifically for HTTPS services. Format: [param1=value1 param2=value2 ...]

Methods

__construct(ConfigurationManager $config)

No description

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

Validates HTTPS 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 HTTPS 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