dns_a_record_set

Creates a A type DNS record set.

Example Usage

resource "dns_a_record_set" "www" {
  zone = "example.com."
  name = "www"
  addresses = [
    "192.168.0.1",
    "192.168.0.2",
    "192.168.0.3",
  ]
  ttl = 300
}

Argument Reference

The following arguments are supported:

  • zone - (Required) DNS zone the record set belongs to. It must be an FQDN, that is, include the trailing dot.
  • name - (Required) The name of the record set. The zone argument will be appended to this value to create the full record path.
  • addresses - (Required) The IPv4 addresses this record set will point to.
  • ttl - (Optional) The TTL of the record set. Defaults to 3600.

Attributes Reference

The following attributes are exported:

  • zone - See Argument Reference above.
  • name - See Argument Reference above.
  • addresses - See Argument Reference above.
  • ttl - See Argument Reference above.

© 2018 HashiCorp
Licensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/dns/r/dns_a_record_set.html