NIDRecordValidator
class NIDRecordValidator implements DnsRecordValidatorInterface (View source)
NID (Node Identifier) Record Validator
Validates NID records according to RFC 6742 (ILNP DNS Resource Records).
NID records are used for Node Identifier in Identifier-Locator Network Protocol (ILNP). The NID record contains a 16-bit preference value followed by a 64-bit Node Identifier value in the EUI-64 format.
Format:
- Preference: 16-bit unsigned integer (0-65535)
- NodeID: 64-bit value in EUI-64 format, represented as 4 groups of 4 hex digits separated by colons (xxxx:xxxx:xxxx:xxxx)
According to RFC 6742:
- The NodeID MUST be in the modified EUI-64 format
- The NodeID MUST NOT be in the compressed format
- The u/l bit (universal/local bit, 7th bit of first byte) indicates if the ID is globally unique
- The g bit (Group bit, least significant bit of first byte) MUST be 0 in ILNP
Example NID record: 10 1000:0000:0000:0001
Note: ILNP is an experimental protocol (RFC 6740) that provides identifier-locator separation to enhance multihoming capabilities.
Methods
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validate an NID record according to RFC 6742
Details
__construct(ConfigurationManager $_config)
No description
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validate an NID record according to RFC 6742