Class AddDnsRecord
- Namespace
- KASserver
- Assembly
- KASserver.Client.dll
Parameters for creating a DNS resource record (add_dns_settings). The record type can be
given either as a DnsRecordType via Type or as a raw KAS string via
RawType — exactly one of the two must be set.
public sealed class AddDnsRecord
- Inheritance
-
AddDnsRecord
- Inherited Members
Properties
Aux
The AUX value (record_aux), used as the priority for MX/SRV records and
0 otherwise. Always sent because the KAS API requires it. Default: 0.
public int Aux { get; set; }
Property Value
RawType
The record type (record_type) as a raw KAS string, for types not covered by
DnsRecordType. Set either this or Type, not both.
public string? RawType { get; set; }
Property Value
RecordData
The record data (record_data), e.g. an IP, a target host or a TXT value. Required.
public required string RecordData { get; set; }
Property Value
RecordName
The record name (record_name), e.g. www. Use an empty string for the zone apex —
that is how get_dns_settings returns it. Required (may be empty, but not whitespace-only).
public required string RecordName { get; set; }
Property Value
Type
The record type (record_type) as a known enum value. Set either this or
RawType, not both.
public DnsRecordType? Type { get; set; }
Property Value
ZoneHost
The DNS zone the record belongs to (zone_host), e.g. example.com. A missing
trailing dot is added automatically. Required.
public required string ZoneHost { get; set; }