Versions Compared

Key

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

...

To get information about an AAAA record, specify a combination of the DNS view, the IPv6 address that the record points to , and the FQDN that corresponds to the IP address. The following table describes the parameters you can define in an infoblox_aaaa_record data source block:

Parameter

Required/Optional

Description

dns_view

Optional

Specifies the DNS view in which the record record’s zone exists.
If a value is not specified, default will be used as the DNS view name default is used.
If the zone is in a non-default DNS view, then you must specify that view.

ipv6_addr

Required

Specifies the IPv6 address associated with the AAAA record.

fqdn

Required

Specifies the fully qualified domain name to which the IP address is assigned.

...

The following example of an infoblox_aaaa_record data source block defines a data source of type infoblox_aaaa_record and name vip_host, which is configured in a Terraform file. You can reference the resource and retrieve information about it. For example, data.infoblox_aaaa_record.vip_host.comment returns the text in the comment field of the AAAA record.

resource "infoblox_aaaa_record" "vip_host" {
fqdn = "very-interesting-host.example.com"
ipv6_addr = "2a05:d014:275:cb00:ec0d:12e2:df27:aa60"
comment = "some comment"
ttl = 120 // 120s
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
}

data "infoblox_aaaa_record" "vip_host" {
dns_view="default"
fqdn="very-interesting-host.example.com"
ipv6_addr="2a05:d014:275:cb00:ec0d:12e2:df27:aa60"

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

output "vip_host_id" {
value = data.infoblox_aaaa_record.vip_host.id
}

...

data "infoblox_aaaa_record" "aaaa_rec2" {
fqdn = "static2.example4.org"
ipv6_addr = "2002:1111::1402"
dns_view = "nondefault_dnsview2" // optional but differs from the default value
}