Versions Compared

Key

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

...

Parameter

Description

Example

dns_view

The DNS view in which the record's zone exists.

test.com

fqdn

The fully qualified domain name to which a textual value is assigned.

sampletxt.demo.com

text

The textual value for the TXT record.some random nex

"\"data for TXT-record\""

zone

The zone that contains the record.

test.com

ttl

The Time to Live value of the record, in seconds.

3600

comment

A description of the record. This is a regular comment.

spare node for the service

ext_attrs

The set of extensible attributes of the record, if any. The content is formatted as a string of JSON map.

{\"Owner\":\"State Library\", \"Expires\":\"never\"}

...

resource "infoblox_txt_record" "rec3" {
dns_view = "nondefault_dnsview1"
fqdn = "example3.example2.org"
text = "\"data for TXT-record #3\""
ttl = 300
comment = "example TXT record #3"
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
}


data "infoblox_txt_record" "ds3" {
filters = {
dns_view = "nondefault_dnsview1"
fqdn name = "example3.example2.org"
text = "\"data for TXT-record #3\""
}

// This is just to ensure that the record has been be created
// using 'infoblox_txt_record' resource block before the data source will be queried.
depends_on = [infoblox_txt_record.rec3]
}

...