---
title: "AAAA Record"
canonical: "https://docs.infoblox.com/space/niosmodulesansible/46006381/AAAA%20Record"
format: markdown
---
<span style="color: #000000">Use the </span>`nios_aaaa_record`<span style="color: #000000"> module to create, update, or remove an AAAA record object from a NIOS Grid.</span>

<span style="color: #000000">The following table describes the parameters you can define in the </span>`nios_aaaa_record`<span style="color: #000000"> module:</span>

| <span style="color: #000000">**Parameter**</span> | <span style="color: #000000">**Required/Optional**</span> | <span style="color: #000000">**Description**</span> |
| --- | --- | --- |
| `name` | <span style="color: #000000">Required</span> | <span style="color: #000000">Specifies the fully qualified host name to add or remove from NIOS.</span><br>To update the name of a AAAA record object, define a dictionary object that contains the following parameters:<br>- `old_name`: Specifies the existing name that must be changed.
- `new_name`: Specifies the new name. |
| `view` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Specifies the DNS view to associate the AAAA record with.</span>  
<span style="color: #000000">If a value is not specified, the default view configured in NIOS is used.</span> |
| `ipv6addr` | <span style="color: #000000">Required</span> | <span style="color: #000000">Specifies the IPv6 address for the AAAA record.</span> |
| `ttl` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Specifies the Time To Live (TTL) value for the record.</span>  
<span style="color: #000000">The duration that the record is valid for, in seconds (cached).</span>  
<span style="color: #000000">Zero indicates that the record should not be cached.</span> |
| `extattrs` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Specifies the extensible attributes for the AAAA record object.</span> |
| `state` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Specifies the state of the AAAA record instance on the NIOS server. Set one of the following values:</span><br>- `present`<span style="color: #000000"> (default): Configures the record.</span>
- `absent`<span style="color: #000000">: Removes the record.</span> |
| `comment` | <span style="color: #000000">Optional</span> | <span style="color: #000000">Describes the AAAA record object.</span> |
| `provider` | <span style="color: #000000">Required</span> | <span style="color: #000000">Defines the details of the connection:</span><br>- `host`<span style="color: #000000">: DNS host name or IP address to connect to the remote instance of NIOS.</span>
- `username`<span style="color: #000000">: User name to use for authenticating the connection to the remote instance.</span>
- `password`<span style="color: #000000">: Password to use for authenticating the connection to the remote instance.</span><br><span style="color: #000000">For information on additional fields you can define, see the list of subparameters in the </span><span style="color: #000000">*[NIOS Modules for Ansible Collections](https://infoblox-docs.atlassian.net/wiki/spaces/niosmodulesansible/pages/44525470/NIOS+Modules+for+Ansible+Collections#Providerparameters)*</span><span style="color: #000000"> topic</span><span style="color: #ff0000">.</span> |
| `connection` | <span style="color: #000000">Required</span> | <span style="color: #000000">The </span>`nios_aaaa_record`<span style="color: #000000"> module must be run locally.</span> |

## <span style="color: #000000">Examples</span>

`name: configure a AAAA record`  
`infoblox.nios_modules.nios_aaaa_record:`  
`  name: aaaa.ansibletestzone.com`  
`  ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334`  
`  state: present`  
`  provider:`  
`    host: <nios_hostname_or_hostip>`  
`    username: <nios_username>`  
`    password: <nios_password>`  
`connection: local`  


`name: Update a AAAA record name`  
`infoblox.nios_modules.nios_aaaa_record:`  
`  name: {new_name: aaaa_new.ansibletestzone.com, old_name: aaaa.ansibletestzone.com}`  
`  ipv6: 2001:0db8:85a3:0000:0000:8a2e:0370:7334`  
`  comment: this is a test comment`  
`  state: present`  
`  provider:`  
`    host: <nios_hostname_or_hostip>`  
`    username: <nios_username>`  
`    password: <nios_password>`  
`connection: local`