Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

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

Time to

live

Live value for the CNAME record.
There is no default value for this parameter.
If

you do not specify

a value is not specified, then in NIOS, the TTL value is inherited from

Grid DNS properties

the parent object of the DNS record for this resource. 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 name default is set as the 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

// 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"

...

 

...

})
}