...
The following table describes the parameters you can define in theĀ resource block of the record:
Parameter | Required/ | Description | Example Value |
---|---|---|---|
| Required | Specifies the fully qualified domain name of the host to which you want to assign the text value. |
|
| Required | Specifies the text value |
that you want to associate with the TXT record. |
server for internal use
|
| ||
| Optional | Specifies the DNS view in which the zone exists. If a value is not specified, |
|
| Optional | Specifies the Time to Live value for the record. There is no default value for this parameter. |
|
| Optional | Describes the record. |
|
| Optional | Specifies the set of NIOS extensible attributes that are attached to the record. |
|
Examples of the TXT Record Block
// TXT-Record, minimal set of parameters
resource "infoblox_txt_record" "rec1" {
fqdn = "sample1.example.org"
text = "\"this is just a sample\""
}
// some parameters for a TXT-Record
resource "infoblox_txt_record" "rec2" {
dns_view = "default" // may be omitted
fqdn = "sample2.example.org"
text = "\"data for TXT-record #2\""
ttl = 120 // 120s
}
// all the parameters for a TXT-Record
resource "infoblox_txt_record" "rec3" {
dns_view = "nondefault_dnsview1"
fqdn = "example2.org "
text = "\"data for TXT-record #3\""
ttl = 300
comment = "example TXT record #3"
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
}