A CNAME record maps one domain name to another (canonical) one. The infoblox_cname_record
resource allows managing such domain name mappings in a NIOS server for CNAME records.
The following table describes the parameters you can define in the infoblox_cname_record
resource block:
Parameter | Required/optional | Description | Example Value |
---|---|---|---|
| Required | Specifies the alias name in the FQDN format. |
|
| Required | Specifies the canonical name in the FQDN format. |
|
| Optional | Specifies the time to live value for the CNAME record. There is no default value for this parameter. If you do not specify a value, the TTL value is inherited from Grid DNS properties. A TTL value of 0 (zero) means caching should be disabled for this record. |
|
| Optional | Specifies the DNS view in which the zone exists. If a value is not specified, the default DNS view is considered. |
|
comment | Optional | Describes the CNAME record. | an example CNAME record |
ext_attrs | Optional | Specifies the set of NIOS extensible attributes that are attached to the CNAME record. | jsonencode({}) |
Example of the CNAME Record Resource
resource "infoblox_cname_record" "ib_cname_record"{
dns_view = "default" # the same as not specifying the attribute
canonical = "CanonicalTestName.xyz.com"
alias = "AliasTestName.xyz.com"
ttl = 3600
comment = "an example CNAME record"
ext_attrs = jsonencode({
"Tenant ID" = "tf-plugin"
"CMP Type" = "Terraform"
"Cloud API Owned" = "True"
})
}