infoblox_cname_record Resource
A CNAME record maps one domain name to another (canonical) one. The infoblox_cname_record
resource allows you to manage 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. |
|
| Optional | Specifies the DNS view in which the record's zone exists. |
|
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
// minimal set of parameters to create a CNAME-record
resource "infoblox_cname_record" "cname_rec1" {
canonical = "main.test.net"
alias = "hq-server.example1.org"
}
// full set of parameters to create a CNAME-record
resource "infoblox_cname_record" "cname_rec2" {
dns_view = "default.nondefault_netview"
canonical = "strange-place.somewhere.in.the.net"
alias = "alarm-server.example3.org"
comment = "we need to keep an eye on this strange host"
ttl = 0 // disable caching
ext_attrs = jsonencode({
Site = "unknown"
Location = "TBD"
})
}