Creates a CNAME type DNS record.
resource "dns_cname_record" "foo" { zone = "example.com." name = "foo" cname = "bar.example.com." ttl = 300 }
The following arguments are supported:
zone
- (Required) DNS zone the record belongs to. It must be an FQDN, that is, include the trailing dot. name
- (Required) The name of the record. The zone
argument will be appended to this value to create the full record path. cname
- (Required) The canonical name this record will point to. ttl
- (Optional) The TTL of the record set. Defaults to 3600
. The following attributes are exported:
zone
- See Argument Reference above. name
- See Argument Reference above. cname
- See Argument Reference above. ttl
- See Argument Reference above.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/dns/r/dns_cname_record.html