class RPRecordValidator implements DnsRecordValidatorInterface (View source)

RP (Responsible Person) record validator

Validates RP records according to:

  • RFC 1183 Section 2.2: Responsible Person RR

RP records specify the mailbox of the person responsible for a domain or host and an optional TXT record containing additional contact information.

Format:

Example: admin.example.com. info.example.com.

Where:

  • mbox-dname: Domain name with the @ replaced by a dot (.) that identifies the mailbox of the responsible person. This is the same convention as used for the SOA RNAME field. For example, "admin.example.com." corresponds to "admin@example.com".
  • txt-dname: Domain name for a TXT record containing additional information. A single dot (.) indicates that no such TXT record exists.

Both fields must be fully qualified domain names ending with a dot (.).

Important notes:

  • The RP record was defined in RFC 1183 (1990) and is less commonly used today
  • Contact information exposed in DNS may create privacy and security concerns
  • Multiple RP records can exist for the same domain name
  • Type code: 17

Methods

__construct(ConfigurationManager $config)

No description

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

Validates RP record content The RP record contains the mailbox of the responsible person and a text record reference

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 RP record content The RP record contains the mailbox of the responsible person and a text record reference

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