---
title: "infoblox_aaaa_record Resource"
canonical: "https://docs.infoblox.com/space/ipamdriverterraform/53121429/infoblox_aaaa_record%20Resource"
format: markdown
---
An AAAA record resource associates a domain name with an IPv6 address.

> Macro (excerpt-include)



Additionally, define any one of the following parameters for the `infoblox_aaaa_record` resource:

| <span style="color: #000000">**Parameter**</span> | <span style="color: #000000">**Required/**</span>  
<span style="color: #000000">**Optional**</span> | <span style="color: #000000">**Description**</span> | <span style="color: #000000">**Example Value**</span> |
| --- | --- | --- | --- |
| `ipv6_addr` | Required only for static allocation | Specifies the IPv6 address to associate with the AAAA record.<br>- 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` |
| `filter_params` | Required only if `ipv6_addr` and `cidr` are not set | Specifies the extensible attributes of the parent network that must be used as filters to retrieve the next available IP address for creating the record object. | `jsonencode({`  
`    "*Site": "Turkey"`  
`    })` |

> ⚠️ **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({})`  
`}`  


`//create a AAAA record using next-available-IP address based on extensible attributes tag`  
`resource "infoblox_aaaa_record" "aaaa_rec3" {`  
`    fqdn = "dyn1.test.com"`  
`    comment = "example dynamic AAAA-record aaaa_rec3, updated"`  
`    ttl = 60`  
`    ext_attrs = jsonencode({`  
`      "Location" = "65.8665701230204, -37.00791763398113"`  
`    })`  
`    filter_params = jsonencode({`  
`      "*Site": "Turkey"`  
`    })`  
`}`