Versions Compared

Key

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

...

Parameter

Description

Example

dns_view

The DNS view in which the record's zone exists.

default

fqdn

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

blues.test.com

ipv4_addr

The IPv4 address allocated to the host record.

10.0.0.32

ipv6_addr

The IPv6 address allocated to the host record.

2001:1890:1959:2710::32

mac_addr

The MAC address assigned to the IPv4 address of the host record created using the infoblox_ip_association resource block.

aa:bb:cc:dd:ee:11

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

duid

It specifies the The DHCPv6 Unique Identifier (DUID) of the IPv6 address object.

34:df:37:1a:d9:7f

enable_dhcp

Specifies whether the host record was created in the DHCP server side.

true

enable_dns

Specifies whether DNS records associated with the resource was created.

true

disable

Displays whether the record is enabled or disabled.

false

aliases

The list of aliases configured for the host record.

["aws880.test.com"]

comment

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

Temporary host record

ext_attrs

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

{\"TestEA\":56,\"TestEA1\":\"kickoff\"}

...

// fetching Host-Records through EAsextensible attributes tag
data "infoblox_host_record" "host_rec_ea" {
filters = {
"*Location" = "USA"
}
}

output "host_ea_out" {
value = data.infoblox_host_record.host_rec_ea
}

//fetching host records with aliases
resource "infoblox_zone_auth" "zone1" {
  fqdn = "http://example.org "
  view = "default"
} 

resource "infoblox_ip_allocation" "allocation1" {
  dns_view = "default"
  fqdn = "host1.example.org"
  ipv4_addr = "10.10.0.7"
  ipv6_addr = "1::1"
  ext_attrs = jsonencode({"Location" = "USA"})
  aliases = ["alias1.test.com","alias"]
  depends_on = [infoblox_zone_auth.zone1]
}

data "infoblox_host_record" "host_rec_temp" {
  filters = {
     name = "host1.example.org"
  }
}