ALIASRecordValidator
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:
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
Validate ALIAS record
Details
__construct(ConfigurationManager $config)
Constructor
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validate ALIAS record