Make Technitium zones from the DNS page

A New zone form on a Technitium DNS provider makes a Primary zone (a domain
name, or an address or network for a reverse zone), a Secondary zone (from the
servers that hold it) or a Forwarder zone (where to pass questions, the
protocol, DNSSEC). Names are written lower case, ASCII, without the trailing
dot and refused before Technitium is asked if they are not zone names;
Technitium's own refusal (a zone that exists) is shown as it was said.
Administrators only, audited, and only for providers that can (the adapter
gets an optional createZone). The new zone opens when it is made.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-01 22:19:16 +01:00
1 parent f73704e6ca
commit 0244f5a8ab
12 files changed
+533 -10

No files matched your search

+9
View File
@@ -675,8 +675,16 @@ export interface DnsProviderSummary {
name: string;
enabled: boolean;
createdAt: string;
/** Whether zones can be made on it from here (Technitium). */
canCreateZones: boolean;
}
/** A zone to be made: a Primary one, a Secondary one from the servers that hold it, or a Forwarder one that passes questions on. */
export type NewDnsZoneInput =
| { type: "Primary"; name: string }
| { type: "Secondary"; name: string; primaryNameServers: string[] }
| { type: "Forwarder"; name: string; forwarder: string; protocol: "Udp" | "Tcp" | "Tls" | "Https" | "Quic"; dnssecValidation: boolean };
export interface DnsZone {
id: string;
name: string;
@@ -3917,6 +3925,7 @@ export const api = {
},
zones: {
list: (providerId: number) => request<{ zones: DnsZone[] }>(`/api/dns/providers/${providerId}/zones`),
create: (providerId: number, body: NewDnsZoneInput) => request<{ zone: { id: string; name: string } }>(`/api/dns/providers/${providerId}/zones`, { method: "POST", body: JSON.stringify(body) }),
},
records: {
list: (providerId: number, zoneId: string) =>