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

« Previous Version 10 Next »

An AAAA record resource associates a domain name with an IPv6 address.

The following table describes the parameters you can define in the resource block of the record:

Parameter

Required/
Optional

Description

Example Value

fqdn

Required

Specifies the fully qualified domain name to which you want to assign the IP address.

host43.zone12.org

network_view

Optional

Specifies the network view to use when allocating an IP address from a network dynamically.
If a value is not specified, default will be used as the network view name.
For static allocation, do not use this field.

networkview_name

dns_view

Optional

Specifies the DNS view in which the record’s zone exists.
If a value is not specified, default will be used as the DNS view name.

dns_view_name

ttl

Optional

Specifies the Time to Live value for the record. There is no default value for this parameter.
If a value is not specified, then in NIOS, the TTL value is inherited from the parent object of the DNS record for this resource. A TTL value of 0 (zero) means caching should be disabled for this record.

600

comment

Optional

Describes the record.

static record #1

ext_attrs

Optional

Specifies the set of NIOS extensible attributes that are attached to the record.

jsonencode({})

Additionally, define the following parameter for infoblox_aaaa_record resource:

Parameter

Required/
Optional

Description

Example Value

ipv6_addr

Required only for static allocation

Specifies the IPv6 address to associate with the AAAA record.

  • For allocating a static IP address, specify a valid IP address.

  • For allocating a dynamic IP address, Configure cidr instead of ipv6_addr. If both fields are configured, the value of cidr is ignored.
    Instead. Optionally, set a network_view if you do not want to allocate it in the default network view.

2001:db8::ff00:42:8329

cidr

Required only for dynamic allocation

Specifies the network in the configured network view from which to allocate an IP address when the ipv6_addr field is empty.
The address is in CIDR format. For static allocation, Configure ipv6_addr instead of cidr.

2001::/64

Note

All parameters except fqdn are optional. If you do not specify the ipv6_addr parameter, you must use the cidr parameter for dynamic address allocation.
Specify a custom network view with cidr if you do not want to use the network view with the name default.

Examples of the AAAA Record Block

// minimal set of parameters to statically create an AAAA-record
resource "infoblox_aaaa_record" "aaaa_rec1" {
fqdn = "example1.org"
ipv6_addr = "2002:1111::1401" // not necessarily from a network existing in NIOS DB
}

// set of all parameters to statically create an AAAA-record
resource "infoblox_aaaa_record" "aaaa_rec2" {
fqdn = "static2.example4.org"
ipv6_addr = "2002:1111::1402"
comment = "example static AAAA-record aaaa_rec2"
dns_view = "nondefault_dnsview2"
ttl = 120 // 120s
ext_attrs = jsonencode({
"Location" = "65.8665701230204, -37.00791763398113"
})
}

// set of all parameters to dynamically create an AAAA-record
resource "infoblox_aaaa_record" "aaaa_rec3" {
fqdn = "example1.org"
cidr = infoblox_ipv6_network.net2.cidr
network_view = infoblox_ipv6_network.net2.network_view // not necessarily in the
// same network view as the DNS view resides in.
comment = "example dynamic AAAA-record aaaa_rec3"
dns_view = "nondefault_dnsview1"
ttl = 0 // 0 = disable caching
ext_attrs = jsonencode({})
}

  • No labels