terraform-provider-mozoutmz/docs/resources/dns_record.md
2026-11-28 15:28:10 +02:00

1.7 KiB

page_title subcategory description
mozoutmz_dns_record Resource - MozOut Mozambique DNS One record of the DNS zone of a domain.

mozoutmz_dns_record (Resource)

One record of the DNS zone of a domain of your account. The domain needs DNS management on. A copy of the zone is saved before each change (the last 20 are kept).

Example Usage

resource "mozoutmz_dns_record" "www" {
  domain = "example.co.mz"
  name   = "www"
  type   = "A"
  value  = "203.0.113.10"
  ttl    = 3600
}

resource "mozoutmz_dns_record" "mail" {
  domain   = "example.co.mz"
  name     = "@"
  type     = "MX"
  value    = "mail.example.co.mz"
  priority = 10
}

Schema

Required

  • domain (String) Domain of the zone.
  • name (String) Name, such as www. @ is the domain itself.
  • type (String) A, AAAA, CNAME, MX, TXT, NS, SRV or CAA.
  • value (String) Value. SRV: weight port target. CAA: tag value.

Optional

  • ttl (Number) 60 to 604800 seconds. Default 14400.
  • priority (Number) For MX and SRV; the flag for CAA. Default 0.

Read-Only

  • id (String) Record id. It changes when the name, value or priority change; the provider follows it.
  • simulated (Boolean) True when the change was simulated with a sandbox_ key.

Notes

  • A CNAME cannot share its name with other records (cname_conflict).
  • Records that decide where the mail of the account email domain goes are refused (account_email_domain): change them in Meu MozOut.
  • Changes are limited to 20 per minute and zone reads to 30 per minute, per account.

Import

terraform import mozoutmz_dns_record.www example.co.mz/a1b2c3d4e5f60718