class L32RecordValidator implements DnsRecordValidatorInterface (View source)

L32 record validator

The L32 record is a DNS resource record type used with the Identifier-Locator Network Protocol (ILNP). It maps a domain name to a 32-bit IPv4 locator value that can be used for ILNP communications with the node. L32 records are typically used for naming subnetworks, especially those that are, were, or might become mobile.

Format:

Where:

  • preference: A 16-bit unsigned integer (0-65535) indicating relative preference Lower values are preferred over higher values.
  • locator: A 32-bit IPv4 address representing the locator value.

Example: 10 192.0.2.1

NOTE: The L32 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 L32 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 L32 record content

L32 format: Example: 10 192.0.2.1

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