Code
·
21 lines
·
369 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21/*
*/
using MailSharp.DNS.Records;
using System.Text;
namespace MailSharp.DNS.Records;
public record RecordNIMLOC : DnsRecord
{
public string Locator { get; init; } = string.Empty;
public RecordNIMLOC(RecordReader rr) : base(rr)
{
ushort rdLength = rr.ReadUInt16(-2);
Locator = rr.ReadString(rdLength);
}
public override string ToString() => Locator;
}