Skip to content

frostmoln_dns_zone (Data Source)

Look up a managed DNS zone by ID or name, e.g. to read its delegation name_servers.

Example Usage

terraform
data "frostmoln_dns_zone" "example" {
  name = "example.com."
}

# Read the zone's delegation name servers to configure your registrar.
output "delegation_name_servers" {
  value = data.frostmoln_dns_zone.example.name_servers
}

Schema

Optional

  • id (String) The unique identifier of the zone. Exactly one of id or name must be specified.
  • name (String) The zone name (FQDN ending with a dot). Exactly one of id or name must be specified.

Read-Only

  • created_at (String) The timestamp when the zone was created.
  • description (String) The description of the zone.
  • email (String) The SOA administrative contact email.
  • name_servers (List of String) The zone's delegation name servers. Delegate your domain at your registrar to exactly these.
  • record_count (Number) The number of editable records in the zone.
  • serial (Number) The SOA serial of the zone.
  • status (String) The status of the zone.
  • tags (Map of String) Key-value tags on the zone.
  • ttl (Number) The default record TTL in seconds.
  • type (String) The zone type.