using System; namespace DnsClient.Protocol { /* https://tools.ietf.org/html/rfc1035#section-3.3.3: 3.3.3. MB RDATA format (EXPERIMENTAL) +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ / MADNAME / / / +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ where: MADNAME A which specifies a host which has the specified mailbox. */ /// /// A represending a domain name which specifies a host which has the specified mailbox. /// /// RFC 1035 public class MbRecord : DnsResourceRecord { /// /// Gets the domain name which specifies a host which has the specified mailbox. /// /// /// The domain name. /// public DnsString MadName { get; } /// /// Initializes a new instance of the class. /// /// The information. /// The domain name. /// If or is null. public MbRecord(ResourceRecordInfo info, DnsString domainName) : base(info) { MadName = domainName ?? throw new ArgumentNullException(nameof(domainName)); } private protected override string RecordToString() { return MadName.Value; } } }