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 data source to retrieve the following information for an A record, which is managed by a NIOS server:

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.

3600

comment

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

Temporary A 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 A record, specify a combination of, the DNS view, IPv4 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_a_record data source block:

Parameter

Required/Optional

Description

dns_view

Required

The DNS view in which the zone exists. If a value is not specified, the default DNS view is considered.

ip_addr

Required

The IPv4 address associated with the A record.

fqdn

Required

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

Example of the A Record Data Source Block

data "infoblox_a_record" "vip_host" {
  dns_view="default"
  fqdn="very-interesting-host.example.com"
  ip_addr="10.3.1.65"
}

output "id" {
  value = data.infoblox_a_record.vip_host
}


output "zone" {
  value = data.infoblox_a_record.vip_host.zone
}


output "ttl" {
  value = data.infoblox_a_record.vip_host.ttl
}


output "comment" {
  value = data.infoblox_a_record.vip_host.comment
}

This example defines a data source of type infoblox_a_record and the name "vip_host", which is configured in a Terraform file. You can reference this resource and retrieve information about it. For example, data.infoblox_a_record.vip_host.comment returns a text as is a comment for the A record.

  • No labels