Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Next »

Use the infoblox_aaaa_record data source to retrieve the following information about an AAAA record from the corresponding object in NIOS:

Parameter

Description

Example

zone

The zone that contains the record in the specified DNS view.

test.com

ttl

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

1800

comment

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

Temporary AAAA record

ext_attrs

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

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

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 exists. If a value is not specified, the name default is used.

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.

Example of the AAAA Record Data Source Block

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.

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"
}

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

output "vip_host_zone" {
value = data.infoblox_aaaa_record.vip_host.zone
}

output "vip_host_ttl" {
value = data.infoblox_aaaa_record.vip_host.ttl
}

output "vip_host_comment" {
value = data.infoblox_aaaa_record.vip_host.comment
}

output "vip_host_ext_attrs" {
value = data.infoblox_aaaa_record.vip_host.ext_attrs
}

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
}

  • No labels