Versions Compared

Key

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

...

Parameter

Alias*

Description

ptrdname

ptrdname

Specifies the fully qualified domain name the PTR record points to.

name

record_name

name

Specifies the name of the PTR record, in the FQDN format, that can be used instead of an IP address. Example: 1.0.0.10.in-addr.arpa.

view

dns_view

Specifies the DNS view in which the record’s zone exists.
If a value is not specified, matching objects are retrieved from all DNS views in the NIOS Grid.

ipv4_addripv4addr

ip_addr

Specifies the IPv4 address associated with the PTR record. If both ipv4_addr and record_name are set, ipv4_addr will take precedence.ipv6_addr

ipv6addr

ip_addr

Specifies the IPv6 address associated with the PTR record. If both ipv6_addr and record_name are set, ipv6_addr will take precedence.

zone

zone

Specifies the zone that contains the record.

comment

comment

Describes the record.

Extensible Attributes

-

Specifies the extensible attributes specified for the record. You must specify the key/value pair within the filters argument.
Example:
filters = {
"*Site" = "some test site"
}

...

resource "infoblox_ptr_record" "host1" {
ptrdname = "host.example.org"
ip_addr = "2a05:d014:275:cb00:ec0d:12e2:df27:aa60"
comment = "workstation #3"
ttl = 300 # 5 minutes
ext_attrs = jsonencode({
"Location" = "the main office"
})
}

data "infoblox_ptr_record" "host1" {
filters = {
ptrdname="host.example.org"
ip_addr ipv6addr="2a05:d014:275:cb00:ec0d:12e2:df27:aa60"
}

...

data "infoblox_ptr_record" "host2" {
filters = {
dns_ view="default"
ptrdname="host.example.org"
record_ name="0.6.a.a.7.2.f.d.2.e.2.1.d.0.c.e.0.0.b.c.5.7.2.0.4.1.0.d.5.0.a.2.ip6.arpa"
}
}
output "ptr_host_res" {
value = data.infoblox_ptr_record.host2
}
// accessing individual field in results
output "ptr_rec_name" {
value = data.infoblox_ptr_record.host2.results.0.ptrdname //zero represents index of json object from results list
}

...