/
AAAA Record

AAAA Record

Use the nios_aaaa_record module to create, update, or remove an AAAA record object from a NIOS Grid.

The following table describes the parameters you can define in the nios_aaaa_record module:

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name

Required

Specifies the fully qualified host name to add or remove from NIOS.

To update the name of a AAAA record object, define a dictionary object that contains the following parameters:

  • old_name: Specifies the existing name that must be changed.

  • new_name: Specifies the new name.

view

Optional

Specifies the DNS view to associate the AAAA record with.
If a value is not specified, the default view configured in NIOS is used.

ipv6addr

Required

Specifies the IPv6 address for the AAAA record.

ttl

Optional

Specifies the Time To Live (TTL) value for the record.
The duration that the record is valid for, in seconds (cached).
Zero indicates that the record should not be cached.

extattrs

Optional

Specifies the extensible attributes for the AAAA record object.

state

Optional

Specifies the state of the AAAA record instance on the NIOS server. Set one of the following values:

  • present (default): Configures the record.

  • absent: Removes the record.

comment

Optional

Describes the AAAA record object.

provider

Required

Defines the details of the connection:

  • host: DNS host name or IP address to connect to the remote instance of NIOS.

  • username: User name to use for authenticating the connection to the remote instance.

  • password: Password to use for authenticating the connection to the remote instance.

For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic.

connection

Required

The nios_aaaa_record module must be run locally.

Examples

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