Code
·
26 lines
·
612 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
26using MailSharp.DNS;
using MailSharp.DNS.Records;
using System;
/*
* http://tools.ietf.org/rfc/rfc2672.txt
*
3. The DNAME Resource Record
The DNAME RR has mnemonic DNAME and type code 39 (decimal).
DNAME has the following format:
<owner> <ttl> <class> DNAME <target>
The format is not class-sensitive. All fields are required. The
RDATA field <target> is a <domain-name> [DNSIS].
*
*/
namespace MailSharp.DNS.Records;
public record RecordDNAME(RecordReader rr) : DnsRecord(rr)
{
public string Target { get; } = rr.ReadDomainName();
public override string ToString() => Target;
}