Code
·
23 lines
·
449 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23/*
http://ana-3.lcs.mit.edu/~jnc/nimrod/dns.txt
*/
using MailSharp.DNS.Records;
namespace MailSharp.DNS.Records;
public record RecordEID : DnsRecord
{
public byte[] EndpointId { get; init; } = [];
public RecordEID(RecordReader rr) : base(rr)
{
ushort rdLength = rr.ReadUInt16(-2);
EndpointId = rr.ReadBytes(rdLength);
}
public override string ToString() =>
BitConverter.ToString(EndpointId).Replace("-", "").ToLowerInvariant();
}