class EUI48RecordValidator implements DnsRecordValidatorInterface (View source)

EUI48 record validator

The EUI48 resource record is used to store IEEE EUI-48 addresses in the DNS. These addresses are typically MAC addresses used in Ethernet and other layer-2 networks.

Format: xx-xx-xx-xx-xx-xx Where each 'xx' is a two-digit hexadecimal number representing one octet of the 48-bit address. The address is represented as six two-digit hexadecimal numbers separated by hyphens. The hexadecimal digits A-F may be uppercase or lowercase.

Examples:

  • 00-00-5e-00-53-2a
  • 00-1A-2B-3C-4D-5E

Methods

__construct(ConfigurationManager $config)

No description

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

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

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