Resource

dcloud_dns_zone

A hosted DNS zone on Deutsche Cloud's nameservers. Delegate the domain to nameservers.

Example Usage

resource "dcloud_dns_zone" "acme" {
  name = "acme.example"
}

output "delegate_to" {
  value = dcloud_dns_zone.acme.nameservers
}

Schema

Required

  • name (String) The domain, such as example.com: trimmed, lowercased, trailing dot dropped, at most 253 characters. Refused (400) when it is not a hostname or is, sits under or encloses the platform domain; refused (409) when another organization holds it or an overlapping name as a zone or app domain, or when it lies inside an existing hosted zone. Up to 253 characters. Changing it replaces the resource.

Optional

  • tags (Map of String) Tags for the new resource, e.g. {"env": "prod", "project": "shop"}. Keys your organization marks required must be present, or the create is refused with the missing keys (GET /tags/api/keys lists them). Changing it replaces the resource.

Read-Only

  • delegation_status (String) Whether the parent zone delegates to Deutsche Cloud yet.
  • id (String) The resource's id.
  • nameservers (List of String) The nameservers to delegate the domain to.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_dns_zone.acme <zone-id>

Generated from the provider's schema.