Code
·
29 lines
·
860 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
26
27
28
29/*
3.3.10. NULL RDATA format (EXPERIMENTAL)
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
/ <anything> /
/ /
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
Anything at all may be in the RDATA field so long as it is 65535 octets
or less.
NULL records cause no additional section processing. NULL RRs are not
allowed in master files. NULLs are used as placeholders in some
experimental extensions of the DNS.
*/
using MailSharp.DNS.Records;
namespace MailSharp.DNS.Records;
public record RecordNULL : DnsRecord
{
public byte[] Data { get; } = [];
public RecordNULL(RecordReader rr) : base(rr)
{
ushort rdlength = rr.ReadUInt16();
Data = rr.ReadBytes(rdlength);
}
public override string ToString() => $"...binary... ({Data.Length} bytes)";
}