Code
·
21 lines
·
402 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21/*
IANA-Reserved
*/
using MailSharp.DNS.Records;
using System.Text;
namespace MailSharp.DNS.Records;
public record RecordUINFO : DnsRecord
{
public string Info { get; init; } = string.Empty;
public RecordUINFO(RecordReader rr) : base(rr)
{
ushort rdLength = rr.ReadUInt16();
Info = Encoding.ASCII.GetString(rr.ReadBytes(rdLength));
}
public override string ToString() => $"\"{Info}\"";
}