Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

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

alias

Required

Specifies the alias name in the FQDN format.

alias1.example.com

canonical

Required

Specifies the canonical name in the FQDN format.

main.example.com

ttl

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.

3600

dns_view

Optional

Specifies the DNS view in which the zone exists. If a value is not specified, the default DNS view is considered.

dns_view_name

commentOptional

Describes the CNAME record.

an example CNAME record
ext_attrsOptionalSpecifies 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"
  })
}

  • No labels