class LPRecordValidator implements DnsRecordValidatorInterface (View source)

LP record validator

The LP (Locator Pointer) record is a DNS resource record type used with the Identifier-Locator Network Protocol (ILNP). It is used to hold the name of a subnetwork for ILNP which can then be used to look up L32 or L64 records. LP is, effectively, a Locator Pointer to L32 and/or L64 records.

Format:

Where:

  • preference: A 16-bit unsigned integer (0-65535) indicating relative preference Lower values are preferred over higher values.
  • FQDN: A fully qualified domain name that points to one or more L32 or L64 records. It MUST NOT have the same value as the owner name of the LP record.

Example: 10 mobile-net1.example.com.

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

LP format: Example: 10 example.com.

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