using System; namespace DnsClient.Protocol { /* https://tools.ietf.org/html/rfc1035#section-3.3.6: 3.3.6. MG RDATA format (EXPERIMENTAL) +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / MGMNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: MGMNAME A which specifies a mailbox which is a member of the mail group specified by the domain name. MG records cause no additional section processing. */ /// /// A represending a domain name which specifies a mailbox which is a member of the mail group specified by the domain name. /// /// RFC 1035 public class MgRecord : DnsResourceRecord { /// /// Gets a domain name which specifies a mailbox which is a member of the mail group specified by the domain nam. /// /// /// The domain name. /// public DnsString MgName { get; } /// /// Initializes a new instance of the class. /// /// The information. /// The domain name. /// If or is null. public MgRecord(ResourceRecordInfo info, DnsString domainName) : base(info) { MgName = domainName ?? throw new ArgumentNullException(nameof(domainName)); } private protected override string RecordToString() { return MgName.Value; } } }