class AFSDBRecordValidator implements DnsRecordValidatorInterface (View source)

AFSDB record validator

Validates AFSDB (AFS Database) records according to:

  • RFC 1183 Section 1: AFS Data Base location (AFSDB RR)
  • RFC 5864: DNS SRV Resource Records for AFS (updates RFC 1183)

AFSDB RRs map from a domain name to the name of an AFS cell database server or Authenticated Name Server for DCE/NCA cell.

Format: [] [] AFSDB

Where:

  • 1: AFS cell database server
  • 2: DCE authenticated name server

Note: RFC 5864 deprecates the use of AFSDB RR to locate AFS cell database servers in favor of SRV records.

Methods

__construct(ConfigurationManager $config)

No description

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

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