Zone
Source:
src/Hetzner/Zone.ts
A Hetzner Cloud DNS zone — an apex domain hosted on Hetzner’s authoritative nameservers.
The zone name is the identity: changing it replaces the zone. Default
TTL, labels, and delete protection update in place. Resource record sets
are a separate resource (RecordSet).
Creating a Zone
Section titled “Creating a Zone”Primary zone with a default TTL
const zone = yield* Hetzner.Zone("example", { name: "example.com", ttl: 3600,});Zone with labels and delete protection
const zone = yield* Hetzner.Zone("example", { name: "example.com", labels: { env: "prod" }, deleteProtection: true,});