MailSharp / MailSharp.DNS / Records / RecordMG.cs
Code · 24 lines · 685 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/*
3.3.6. MG RDATA format (EXPERIMENTAL)

    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
    /                   MGMNAME                     /
    /                                               /
    +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

where:

MGMNAME         A <domain-name> which specifies a mailbox which is a
                member of the mail group specified by the domain name.

MG records cause no additional section processing.
*/
using MailSharp.DNS.Records;

namespace MailSharp.DNS.Records;

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