bigip_profile_dns - Manage DNS profiles on a BIG-IP¶
New in version 2.6.
Synopsis¶
- Manage DNS profiles on a BIG-IP. Many DNS profiles; each with their own adjustments to the standard
dns
profile. Users of this module should be aware that many of the adjustable knobs have no module default. Instead, the default is assigned by the BIG-IP system itself which, in most cases, is acceptable.
Requirements¶
The below requirements are needed on the host that executes this module.
- f5-sdk >= 3.0.16
Parameters¶
Parameter | Choices/Defaults | Comments | |
---|---|---|---|
cache_name
(added in 2.7) |
Specifies the user-created cache that the system uses to cache DNS responses.
When you select a cache for the system to use, you must also set
enable_dns_cache to yes |
||
enable_cache
bool (added in 2.7) |
|
Specifies whether the system caches DNS responses.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
When
yes , the BIG-IP system caches DNS responses handled by the virtual servers associated with this profile. When you enable this setting, you must also specify a value for cache_name .When
no , the BIG-IP system does not cache DNS responses handled by the virtual servers associated with this profile. However, the profile retains the association with the DNS cache in the cache_name parameter. Disable this setting when you want to debug the system. |
|
enable_dns_express
bool |
|
Specifies whether the DNS Express engine is enabled.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
The DNS Express engine receives zone transfers from the authoritative DNS server for the zone. If the
enable_zone_transfer setting is also yes on this profile, the DNS Express engine also responds to zone transfer requests made by the nameservers configured as zone transfer clients for the DNS Express zone. |
|
enable_dns_firewall
bool |
|
Specifies whether DNS firewall capability is enabled.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
|
|
enable_dnssec
bool |
|
Specifies whether the system signs responses with DNSSEC keys and replies to DNSSEC specific queries (e.g., DNSKEY query type).
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
|
|
enable_gtm
bool |
|
Specifies whether the system uses Global Traffic Manager to manage the response.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
|
|
enable_zone_transfer
bool |
|
Specifies whether the system answers zone transfer requests for a DNS zone created on the system.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
The
enable_dns_express and enable_zone_transfer settings on a DNS profile affect how the system responds to zone transfer requests.When the
enable_dns_express and enable_zone_transfer settings are both yes , if a zone transfer request matches a DNS Express zone, then DNS Express answers the request.When the
enable_dns_express setting is no and the enable_zone_transfer setting is yes , the BIG-IP system processes zone transfer requests based on the last action and answers the request from local BIND or a pool member. |
|
name
required |
Specifies the name of the DNS profile.
|
||
parent |
Specifies the profile from which this profile inherits settings.
When creating a new profile, if this parameter is not specified, the default is the system-supplied
dns profile. |
||
partition |
Default: Common
|
Device partition to manage resources on.
|
|
password
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 |
||
process_recursion_desired
bool |
|
Specifies whether to process client-side DNS packets with Recursion Desired set in the header.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
If set to
no , processing of the packet is subject to the unhandled-query-action option. |
|
provider
(added in 2.5) |
Default: None
|
A dict object containing connection details.
|
|
ssh_keyfile |
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 |
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.
|
|
server
required |
The BIG-IP host.
You may omit this option by setting the environment variable
F5_SERVER . |
||
user
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 . |
||
server_port |
Default: 443
|
The BIG-IP server port.
You may omit this option by setting the environment variable
F5_SERVER_PORT . |
|
password
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 |
||
validate_certs
bool |
|
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 . |
|
transport
required |
|
Configures the transport connection to use when connecting to the remote device.
|
|
server
required |
The BIG-IP host.
You may omit this option by setting the environment variable
F5_SERVER . |
||
server_port
(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 |
|
When
present , ensures that the profile exists.When
absent , ensures the profile is removed. |
|
unhandled_query_action
(added in 2.7) |
|
Specifies the action to take when a query does not match a Wide IP or a DNS Express Zone.
When
allow , the BIG-IP system forwards queries to a DNS server or pool member. If a pool is not associated with a listener and the Use BIND Server on BIG-IP setting is set to Enabled, requests are forwarded to the local BIND server.When
drop , the BIG-IP system does not respond to the query.When
reject , the BIG-IP system returns the query with the REFUSED return code.When
hint , the BIG-IP system returns the query with a list of root name servers.When
no-error , the BIG-IP system returns the query with the NOERROR return code.When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
|
|
use_local_bind
bool |
|
Specifies whether the system forwards non-wide IP queries to the local BIND server on the BIG-IP system.
For best performance, disable this setting when using a DNS cache.
When creating a new profile, if this parameter is not specified, the default is provided by the parent profile.
|
|
user
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
bool (added in 2.0) |
|
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 the f5-sdk Python package on the host. This is as easy as
pip install f5-sdk
. - 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 profile
bigip_profile_dns:
name: foo
enable_dns_express: no
enable_dnssec: no
enable_gtm: no
process_recursion_desired: no
use_local_bind: no
enable_dns_firewall: yes
password: secret
server: lb.mydomain.com
state: present
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 |
---|---|---|
cache_name
string
|
changed |
Name of the cache used by DNS.
Sample:
/Common/cache1
|
enable_cache
bool
|
changed |
Whether DNS caching is enabled or not.
|
enable_dns_express
bool
|
changed |
Whether DNS Express is enabled on the resource or not.
Sample:
True
|
enable_dns_firewall
bool
|
changed |
Whether DNS firewall capability is enabled or not.
|
enable_dnssec
bool
|
changed |
Whether DNSSEC is enabled on the resource or not.
|
enable_gtm
bool
|
changed |
Whether GTM is used to manage the resource or not.
Sample:
True
|
enable_zone_transfer
bool
|
changed |
Whether zone transfer are enabled on the resource or not.
|
process_recursion_desired
bool
|
changed |
Whether client-side DNS packets are processed with Recursion Desired set.
Sample:
True
|
unhandled_query_action
string
|
changed |
What to do with unhandled queries
Sample:
allow
|
use_local_bind
bool
|
changed |
Whether non-wide IP queries are forwarded to the local BIND server or not.
|
Status¶
This module is flagged as preview which means that it is not guaranteed to have a backwards compatible interface.
Maintenance¶
This module is flagged as certified which means that it is maintained by an Ansible Partner. See Module Maintenance & Support for more info.
For a list of other modules that are also maintained by an Ansible Partner, see here.
Author¶
- Tim Rupp (@caphrim007)
Hint
If you notice any issues in this documentation you can edit this document to improve it.