class ALIASRecordValidator implements DnsRecordValidatorInterface (View source)

Validator for ALIAS DNS records

ALIAS is a PowerDNS-specific record type (65401) that provides CNAME-like functionality at zone apex (root domain). Unlike CNAME records, ALIAS records can coexist with other record types for the same name.

Format: [] IN ALIAS

When a resolver asks for an A or AAAA record for a name with an ALIAS record, PowerDNS will resolve the target's A/AAAA records and return them as if they belonged to the name.

Note that for proper functionality in PowerDNS, the expand-alias setting must be enabled and a resolver must be configured. These settings are beyond the scope of this validator.

Methods

__construct(ConfigurationManager $config)

Constructor

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

Validate ALIAS record

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 ALIAS 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