Table of Contents

Class DnsRecord

Namespace
KASserver
Assembly
KASserver.Client.dll

A DNS resource record as returned by get_dns_settings. Typed convenience properties cover the common fields; Raw exposes the complete map for everything else.

public sealed class DnsRecord
Inheritance
DnsRecord
Inherited Members

Remarks

Field shape verified live against the KAS API (get_dns_settings). Note that the response field names differ from the request parameter names: the zone is returned as record_zone (the request uses zone_host). Built-in records carry record_id = 0 and are neither changeable nor deleteable.

Properties

Aux

The AUX value / priority (KAS field record_aux), relevant for MX/SRV.

public int? Aux { get; }

Property Value

int?

Changeable

Whether the record may be edited (KAS field record_changeable, Y/N).

public bool Changeable { get; }

Property Value

bool

Deleteable

Whether the record may be deleted (KAS field record_deleteable, Y/N).

public bool Deleteable { get; }

Property Value

bool

Raw

The complete raw field map as returned by the KAS API.

public required IReadOnlyDictionary<string, object?> Raw { get; init; }

Property Value

IReadOnlyDictionary<string, object>

RawType

The raw record type string as returned by KAS (KAS field record_type).

public string? RawType { get; }

Property Value

string

RecordData

The record data (KAS field record_data).

public string? RecordData { get; }

Property Value

string

RecordId

The technical record ID (KAS field record_id), used by update/delete actions. Built-in records report 0 and cannot be edited or deleted (see Changeable/Deleteable).

public string? RecordId { get; }

Property Value

string

RecordName

The record name (KAS field record_name); empty for the zone apex.

public string? RecordName { get; }

Property Value

string

RecordZone

The zone this record belongs to (KAS field record_zone).

public string? RecordZone { get; }

Property Value

string

Type

The record type as a DnsRecordType, or null when KAS returned a type not covered by the enum (the raw string is then available via RawType).

public DnsRecordType? Type { get; }

Property Value

DnsRecordType?