using System; namespace DnsClient.Protocol { /* https://tools.ietf.org/html/rfc1035#section-3.3.8: 3.3.8. MR RDATA format (EXPERIMENTAL) +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / NEWNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: NEWNAME A which specifies a mailbox which is the proper rename of the specified mailbox. MR records cause no additional section processing. The main use for MR is as a forwarding entry for a user who has moved to a different mailbox. */ /// /// A represending a mailbox rename domain name. /// /// RFC 1035 public class MrRecord : DnsResourceRecord { /// /// Gets the domain name which specifies a mailbox which is the proper rename of the specified mailbox. /// /// /// The domain name. /// public DnsString NewName { get; } /// /// Initializes a new instance of the class. /// /// The information. /// The domain name. /// If or is null. public MrRecord(ResourceRecordInfo info, DnsString name) : base(info) { NewName = name ?? throw new ArgumentNullException(nameof(name)); } private protected override string RecordToString() { return NewName.Value; } } }