bigip_dns_zone – Manage DNS zones on BIG-IP

From Get docs
Ansible/docs/2.8/modules/bigip dns zone module


bigip_dns_zone – Manage DNS zones on BIG-IP

New in version 2.8.


Synopsis

  • Manage DNS zones on BIG-IP. The zones managed here are primarily used for configuring DNS Express on BIG-IP. This module does not configure zones that are found in BIG-IP ZoneRunner.

Parameters

Parameter Choices/Defaults Comments

dns_express

dictionary

DNS express related settings.

allow_notify_from

list

Specifies the IP addresses from which the system accepts NOTIFY messages for this DNS Express zone.

enabled

boolean

  • no
  • yes

Specifies the current status of the DNS Express zone.

notify_action

string

  • consume
  • bypass
  • repeat

Specifies the action the system takes when a NOTIFY message is received for this DNS Express zone.

If a TSIG key is configured for the zone, the signature is only validated for consume and repeat actions.

When consume, the NOTIFY message is seen only by DNS Express.

When bypass, the NOTIFY message does not go to DNS Express, but instead goes to a back-end DNS server (subject to the value of the Unhandled Query Action configured in the DNS profile applied to the listener that handles the DNS request).

When repeat, the NOTIFY message goes to both DNS Express and any back-end DNS server.

response_policy

boolean

  • no
  • yes

Specifies whether this DNS Express zone is a DNS response policy zone (RPZ).

server

string

Specifies the back-end authoritative DNS server from which the BIG-IP system receives AXFR zone transfers for the DNS Express zone.

verify_tsig

boolean

  • no
  • yes

Specifies whether the system verifies the identity of the authoritative nameserver that sends updated information for this DNS Express zone.

name

string / required

Specifies the name of the DNS zone.

The name must begin with a letter and contain only letters, numbers, and the underscore character.

nameservers

list

Specifies the DNS nameservers to which the system sends NOTIFY messages.

partition

string

Default:

"Common"

Device partition to manage resources on.

password

string / required

The password for the user account used to connect to the BIG-IP.

You may omit this option by setting the environment variable F5_PASSWORD.


aliases: pass, pwd

provider

dictionary

added in 2.5

A dict object containing connection details.

password

string / required

The password for the user account used to connect to the BIG-IP.

You may omit this option by setting the environment variable F5_PASSWORD.


aliases: pass, pwd

server

string / required

The BIG-IP host.

You may omit this option by setting the environment variable F5_SERVER.

server_port

integer

Default:

443

The BIG-IP server port.

You may omit this option by setting the environment variable F5_SERVER_PORT.

ssh_keyfile

path

Specifies the SSH keyfile to use to authenticate the connection to the remote device. This argument is only used for cli transports.

You may omit this option by setting the environment variable ANSIBLE_NET_SSH_KEYFILE.

timeout

integer

Default:

10

Specifies the timeout in seconds for communicating with the network device for either connecting or sending commands. If the timeout is exceeded before the operation is completed, the module will error.

transport

string

  • cli
  • rest

Configures the transport connection to use when connecting to the remote device.

user

string / required

The username to connect to the BIG-IP with. This user must have administrative privileges on the device.

You may omit this option by setting the environment variable F5_USER.

validate_certs

boolean

  • no
  • yes

If no, SSL certificates are not validated. Use this only on personally controlled sites using self-signed certificates.

You may omit this option by setting the environment variable F5_VALIDATE_CERTS.

server

string / required

The BIG-IP host.

You may omit this option by setting the environment variable F5_SERVER.

server_port

integer

added in 2.2

Default:

443

The BIG-IP server port.

You may omit this option by setting the environment variable F5_SERVER_PORT.

state

string

  • present

  • absent

When present, ensures that the resource exists.

When absent, ensures the resource is removed.

tsig_server_key

string

Specifies the TSIG key the system uses to authenticate the back-end DNS authoritative server that sends AXFR zone transfers to the BIG-IP system.

user

string / required

The username to connect to the BIG-IP with. This user must have administrative privileges on the device.

You may omit this option by setting the environment variable F5_USER.

validate_certs

boolean

added in 2.0

  • no
  • yes

If no, SSL certificates are not validated. Use this only on personally controlled sites using self-signed certificates.

You may omit this option by setting the environment variable F5_VALIDATE_CERTS.



Notes

Note

  • For more information on using Ansible to manage F5 Networks devices see https://www.ansible.com/integrations/networks/f5.
  • Requires BIG-IP software version >= 12.
  • The F5 modules only manipulate the running configuration of the F5 product. To ensure that BIG-IP specific configuration persists to disk, be sure to include at least one task that uses the bigip_config module to save the running configuration. Refer to the module’s documentation for the correct usage of the module to save your running configuration.


Examples

- name: Create a DNS zone for DNS express
  bigip_dns_zone:
    name: foo.bar.com
    dns_express:
      enabled: yes
      server: dns-lab
      allow_notify_from:
        - 192.168.39.10
      notify_action: consume
      verify_tsig: no
      response_policy: no
    provider:
      password: secret
      server: lb.mydomain.com
      user: admin
  delegate_to: localhost

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key Returned Description

allow_notify_from

list

changed

The new DNS Express Allow NOTIFY From value.


Sample:

['1.1.1.1', '2.2.2.2']

enabled

boolean

changed

Whether the zone is enabled or not.


Sample:

True

express_server

string

changed

The new DNS Express Server value.


Sample:

server1

nameservers

list

changed

The new Zone Transfer Clients Nameservers value.


Sample:

['/Common/server1', '/Common/server2']

notify_action

string

changed

The new DNS Express Notify Action value.


Sample:

consume

response_policy

boolean

changed

The new DNS Express Response Policy value.


tsig_server_key

string

changed

The new TSIG Server Key value.


Sample:

/Common/key1

verify_tsig

boolean

changed

The new DNS Express Verify Notify TSIG value.


Sample:

True




Status

Authors

  • Tim Rupp (@caphrim007)

Hint

If you notice any issues in this documentation you can edit this document to improve it.


© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.8/modules/bigip_dns_zone_module.html