class HINFORecordValidator implements DnsRecordValidatorInterface (View source)

HINFO record validator

The HINFO (Host Information) record is used to acquire general information about a host. It provides CPU type and operating system information which can be used by application protocols to use special procedures when communicating with specific computer architectures.

Format: Where:

  • CPU: A character-string which specifies the CPU type
  • OS: A character-string which specifies the operating system type

Both fields must be present. If a field contains spaces, it must be enclosed in double quotes.

Examples:

  • "Intel Core i7" "Windows 10"
  • INTEL LINUX
  • "AMD Ryzen" "Ubuntu 22.04"

Note: For security reasons, HINFO records are not recommended for public-facing DNS as they can reveal potentially sensitive information about the host's hardware and software configuration that could be useful to attackers.

Methods

__construct(ConfigurationManager $config)

No description

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

Validates HINFO 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 HINFO 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