effectivelywild.technitium_dns.technitium_dns_get_zone_info module – Get DNS zone(s)
Note
This module is part of the effectivelywild.technitium_dns collection (version 0.4.0).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install effectivelywild.technitium_dns
.
To use it in a playbook, specify: effectivelywild.technitium_dns.technitium_dns_get_zone_info
.
New in effectivelywild.technitium_dns 0.1.0
Synopsis
Retrieve all DNS zones, or filter by zone type and/or name, from a Technitium DNS server.
Returns a subset of zone information compared to `technitium_dns_get_zone_options`
Parameters
Parameter |
Comments |
---|---|
Port for the Technitium DNS API. Defaults to 5380 Default: |
|
API token for authenticating with the Technitium DNS API |
|
Base URL for the Technitium DNS API |
|
Whether to validate SSL certificates when making API requests. Choices:
|
|
The DNS zone to retrieve information for. If not specified, all zones are returned. |
|
Filter zones by type. Choices:
|
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_create_zone
Creates DNS Zones
- effectivelywild.technitium_dns.technitium_dns_delete_zone
Deletes DNS Zones
- effectivelywild.technitium_dns.technitium_dns_sign_zone
Sign a zone with DNSSEC
- effectivelywild.technitium_dns.technitium_dns_get_zone_options
Get all configured zone options
- effectivelywild.technitium_dns.technitium_dns_set_zone_options
Set zone options
- effectivelywild.technitium_dns.technitium_dns_enable_zone
Enable a zone
- effectivelywild.technitium_dns.technitium_dns_disable_zone
Disable a zone
Examples
- name: Get all zones from Technitium DNS
technitium_dns_get_zone_info:
api_url: "http://localhost"
api_token: "myapitoken"
port: 5203
register: result
- debug:
var: result.zones
- name: Get all Primary zones from Technitium DNS
technitium_dns_get_zone_info:
api_url: "http://localhost"
api_token: "myapitoken"
zone_type: Primary
register: result
- debug:
var: result.zones
- name: Get a specific zone from Technitium DNS
technitium_dns_get_zone_info:
api_url: "http://localhost"
api_token: "myapitoken"
zone: "example.com"
register: result
- debug:
var: result.zones
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Whether the module made changes (always false for get operations) Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
List of zones (always returned as a list, even for single zone requests) Returned: always |
|
Catalog zone association (null if not part of catalog) Returned: always |
|
Whether the zone is disabled Returned: always Sample: |
|
DNSSEC status of the zone Returned: always Sample: |
|
Whether the zone is internal Returned: always Sample: |
|
When the zone was last modified (ISO 8601 format) Returned: always Sample: |
|
Zone name/domain Returned: always Sample: |
|
Whether zone notification failed Returned: always Sample: |
|
List of hosts for which notification failed Returned: always Sample: |
|
SOA serial number of the zone Returned: always Sample: |
|
Zone type Returned: always Sample: |