/
DNS View

DNS View

Use the nios_dns_view module to create, update, or remove instances of DNS view objects from a NIOS Grid.

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

Parameter

Required/Optional

Description

Parameter

Required/Optional

Description

name

Required

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

network_view

Required

Specifies the name of the network view to which the DNS view must be assigned.
If a value is not specified, the default network view configured in NIOS is used.

extattrs

Optional

Specifies extensible attributes for the DNS view object.

state

Optional

Specifies the state of the DNS view instance in NIOS. Set one of the following values:

  • present (default): Configures the object.

  • absent: Removes the object.

comment

Optional

Describes the DNS view object.

provider

Required

A dictionary object that contains connection details.

  • 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_dns_view module must be run locally.



Examples

name: configure a new dns view instance
infoblox.nios_modules.nios_dns_view:
  name: ansible-dns
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local



name: update the dns view instance
infoblox.nios_modules.nios_dns_view:
  name: {new_name: ansible-dns-new, old_name: ansible-dns}
  state: present
  provider:
    host: <nios_hostname_or_hostip>
    username: <nios_username>
    password: <nios_password>
connection: local