MailSharp / MailSharp.DNS / Records / RecordMB.cs
Code · 25 lines · 702 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25/*
3.3.3. MB RDATA format (EXPERIMENTAL)

    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                   MADNAME                     /
    /                                               /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

where:

MADNAME         A <domain-name> which specifies a host which has the
                specified mailbox.

MB records cause additional section processing which looks up an A type
RRs corresponding to MADNAME.
*/
using MailSharp.DNS.Records;

namespace MailSharp.DNS.Records;

public record RecordMB(RecordReader rr) : DnsRecord(rr)
{
	public string MadName { get; } = rr.ReadDomainName();
	public override string ToString() => MadName;
}