class L64RecordValidator implements DnsRecordValidatorInterface (View source)

L64 record validator

The L64 record is a DNS resource record type used with the Identifier-Locator Network Protocol (ILNP). It maps a domain name to a 64-bit IPv6 locator value that can be used for ILNP communications with the node. L64 records are used primarily for ILNPv6-capable nodes and help to separate the node identity from its location.

Format:

Where:

  • preference: A 16-bit unsigned integer (0-65535) indicating relative preference Lower values are preferred over higher values.
  • locator64: A 64-bit value (represented as 4 groups of hexadecimal digits separated by colons) that has the same syntax and semantics as a 64-bit IPv6 routing prefix.

Example: 10 2001:0db8:1140:1000

NOTE: The L64 record type is defined in RFC 6742 as an experimental protocol. It is not a formal IETF standard but is published for examination, experimental implementation, and evaluation.

Methods

__construct(ConfigurationManager $config)

No description

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

Validates L64 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 L64 record content

L64 format: Example: 10 2001:0db8:1140:1000

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