MRRecordValidator
class MRRecordValidator implements DnsRecordValidatorInterface (View source)
MR (Mail Rename) record validator
Validates MR records according to:
- RFC 1035: Domain Names - Implementation and Specification
MR records specify a domain name which is the new name for the mailbox specified in the record name. The MR record is intended as a forwarding entry for a user who has moved to a different mailbox.
Format:
Example: new-mailbox.example.com
Where:
- new-mailbox: A domain name specifying a mailbox which is the proper rename of the specified mailbox in the record name.
Usage: When a mail server query returns an MR record, the mailer should replace the old mailbox (in the record name) with the new one (in the record content) and retry the mail operation.
Important notes:
- MR records were marked as EXPERIMENTAL in RFC 1035
- Type code: 9
- Modern email systems rarely use MR records for mail forwarding
- The content should be a fully qualified domain name
- No additional section processing is required for MR records
Methods
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validate an MR record
Details
__construct(ConfigurationManager $config)
No description
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validate an MR record