DNS Zone
Use the nios_zone
module to create, update, or remove a DNS zone object from a NIOS Grid.
The following table describes the parameters you can define in the nios_zone
module:
Parameter | Required/Optional | Description |
---|---|---|
| Required | Specifies the fully qualified host name to add, update, or remove from NIOS. |
| Optional | Specifies the DNS view to associate the zone with. |
| Optional | Specifies the primary server of the Grid for this zone. Configure the |
| Optional | Specifies the secondary server of the Grid for this zone. Configure the |
| Optional | Specifies the name server group for this zone. |
| Optional | Setting this parameter to |
| Optional | Creates an authoritative reverse-mapping zone, which is an area of the network space for which one or more primary and secondary name servers respond to the address-to-name queries. |
| Optional | Specifies extensible attributes for the zone object. |
| Optional | Specifies the state of the DNS zone instance on the NIOS server.
|
| Optional | Describes the DNS zone object. |
| Required | Defines the details of the connection:
For information on additional fields you can define, see the list of subparameters in the NIOS Modules for Ansible Collections topic. |
| Required | The |
Examples
name:Configure a zone on the system using grid primary and secondaries
infoblox.nios_modules.nios_zone:
name: ansible.com
grid_primary:
- name: gridprimary.grid.com
grid_secondaries:
- name: gridsecondary1.grid.com
- name: gridsecondary2.grid.com
restart_if_needed: true
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local
name:Configure a zone on the system using a name server group
infoblox.nios_modules.nios_zone:
name: ansible.com
ns_group: examplensg
restart_if_needed: true
state: present
provider:
host: <nios_hostname_or_hostip>
username: <nios_username>
password: <nios_password>
connection: local