Skip to content

Commit

Permalink
Updated documentation for TXT-Record
Browse files Browse the repository at this point in the history
  • Loading branch information
nitish-ks committed Feb 19, 2024
1 parent a7d2c25 commit 333044a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions docs/data-sources/infoblox_txt_record.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ From the below list of supported arguments for filters, use only the searchable
data "infoblox_txt_record" "txt_rec_filter" {
filters = {
name = "sampletxt.demo.com"
text = "some random text"
text = "\"some random text\""
view = "default" // associated DNS view
}
}
Expand All @@ -52,7 +52,7 @@ all records will be fetched in results.
resource "infoblox_txt_record" "rec3" {
dns_view = "nondefault_dnsview1"
fqdn = "example3.example2.org"
text = "data for TXT-record #3"
text = "\"data for TXT-record #3\""
ttl = 300
comment = "example TXT record #3"
ext_attrs = jsonencode({
Expand All @@ -63,7 +63,7 @@ resource "infoblox_txt_record" "rec3" {
data "infoblox_txt_record" "ds3" {
filters = {
dns_view = "nondefault_dnsview1"
fqdn = "example3.example2.org"
name = "example3.example2.org"
}
// This is just to ensure that the record has been be created
Expand Down
8 changes: 4 additions & 4 deletions docs/resources/infoblox_txt_record.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The `infoblox_txt_record` resource associates a text value with a domain name.
The following list describes the parameters you can define in the resource block of the record:

* `fqdn`: required, specifies the fully qualified domain name which you want to assign the text value for. Example: `host43.zone12.org`
* `text`: required, specifies the text value for the TXT-record. An empty value is not allowed.
* `text`: required, specifies the text value for the TXT-record. It can contain substrings of up to 255 bytes and a total of up to 512 bytes. If you enter leading, trailing, or embedded spaces in the text, add double quotes around the text to preserve the spaces.
* `dns_view`: optional, specifies the DNS view which the zone exists in. If a value is not specified, the name `default` is used for DNS view. Example: `dns_view_1`
* `ttl`: optional, specifies the "time to live" value for the record. There is no default value for this parameter. If a value is not specified, then in NIOS, the value is inherited from the parent zone of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record. Example: `600`
* `comment`: optional, describes the record. Example: `auto-created test record #1`
Expand All @@ -17,22 +17,22 @@ The following list describes the parameters you can define in the resource block
// TXT-Record, minimal set of parameters
resource "infoblox_txt_record" "rec1" {
fqdn = "sample1.example.org"
text = "this is just a sample"
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"
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 = "example3.example2.org"
text = "data for TXT-record #3"
text = "\"data for TXT-record #3\""
ttl = 300
comment = "example TXT record #3"
ext_attrs = jsonencode({
Expand Down
4 changes: 2 additions & 2 deletions examples/datasources/infoblox_txt_record.tf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
resource "infoblox_txt_record" "rec3" {
dns_view = "nondefault_dnsview1"
fqdn = "example3.example2.org"
text = "data for TXT-record #3"
text = "\"data for TXT-record #3\""
ttl = 300
comment = "example TXT record #3"
ext_attrs = jsonencode({
Expand All @@ -12,7 +12,7 @@ resource "infoblox_txt_record" "rec3" {
data "infoblox_txt_record" "ds3" {
filters = {
dns_view = "nondefault_dnsview1"
fqdn = "example3.example2.org"
name = "example3.example2.org"
}

// This is just to ensure that the record has been be created
Expand Down
6 changes: 3 additions & 3 deletions examples/resources/infoblox_txt_record.tf
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
// TXT-Record, minimal set of parameters
resource "infoblox_txt_record" "rec1" {
fqdn = "sample1.example.org"
text = "this is just a sample"
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"
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 = "example3.example2.org"
text = "data for TXT-record #3"
text = "\"data for TXT-record #3\""
ttl = 300
comment = "example TXT record #3"
ext_attrs = jsonencode({
Expand Down

0 comments on commit 333044a

Please sign in to comment.