DnsTsigRecord Class

Represents a TSIG pseudo-record (RFC 8945), the signature of a message. When DnsClientOptions.TsigKey is set, the client verifies it before returning the response.

public sealed class DnsTsigRecord : DnsRecord
Inheritance
DnsRecord DnsTsigRecord

Constructors

NameDescription
DnsTsigRecord()

DnsTsigRecord()

DnsTsigRecord.cs
public DnsTsigRecord()

No documentation is available.

Properties

NameDescription
AlgorithmGets the name of the HMAC algorithm (for instance hmac-sha256).
ErrorGets the TSIG error (DnsResponseCode.BadSignature, DnsResponseCode.BadKey, DnsResponseCode.BadTime, ...), or DnsResponseCode.NoError.
FudgeGets the number of seconds of clock difference the signer allows.
MacGets the message authentication code.
OriginalIdGets the identifier of the message when it was signed.
OtherDataGets the other data, the time of the server in a DnsResponseCode.BadTime response.
TimeSignedGets the time the message was signed, as seconds since Unix epoch.

Gets the name of the HMAC algorithm (for instance hmac-sha256).

public string Algorithm { get; }

Property value

string

Gets the number of seconds of clock difference the signer allows.

public ushort Fudge { get; }

Property value

ushort

Gets the message authentication code.

public byte[] Mac { get; }

Property value

byte[]

Gets the identifier of the message when it was signed.

public ushort OriginalId { get; }

Property value

ushort

Gets the other data, the time of the server in a DnsResponseCode.BadTime response.

public byte[] OtherData { get; }

Property value

byte[]

Gets the time the message was signed, as seconds since Unix epoch.

public ulong TimeSigned { get; }

Property value

ulong