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/ | Description | Example Value |
---|---|---|---|
| Required | Specifies the fully qualified domain name to which you want to assign the IP address. |
|
| Optional | Specifies the network view to use when allocating an IP address from a network dynamically. |
|
| Optional | Specifies the DNS view in which the record’s zone exists. |
|
| Optional | Specifies the Time to Live value for the record. There is no default value for this parameter. |
|
| Optional | Describes the record. |
|
| Optional | Specifies the set of NIOS extensible attributes that are attached to the record. |
|
Additionally, define the following parameter for infoblox_aaaa_record
resource:
Parameter | Required/ | Description | Example Value |
---|---|---|---|
| Required only for static allocation | Specifies the IPv6 address to associate with the AAAA record.
|
|
| Required only for dynamic allocation | Specifies the network in the configured network view from which to allocate an IP address when the |
|
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({})
}