effectivelywild.technitium_dns.technitium_dns_list_cache module – List cached DNS zones and records
Note
This module is part of the effectivelywild.technitium_dns collection (version 0.9.1).
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_list_cache.
New in effectivelywild.technitium_dns 0.8.0
Synopsis
Retrieve cached DNS zones and records from server cache.
Can list cache for a specific domain or browse the cache hierarchy.
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 |
|
Direction for browsing the zone hierarchy. Allows the server to skip empty labels when browsing. Choices:
|
|
The domain name to list cached records for. If not specified, lists the cache root (empty string). Default: |
|
Whether to validate SSL certificates when making API requests. Choices:
|
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_delete_cache
Delete a specific cached zone
- effectivelywild.technitium_dns.technitium_dns_flush_cache
Flush the entire DNS cache
Examples
- name: List all cached zones at root
technitium_dns_list_cache:
api_url: "http://localhost"
api_token: "myapitoken"
register: result
- name: List cached records for google.com
technitium_dns_list_cache:
api_url: "http://localhost"
api_token: "myapitoken"
domain: "google.com"
register: result
- name: Browse cache hierarchy upward from subdomain
technitium_dns_list_cache:
api_url: "http://localhost"
api_token: "myapitoken"
domain: "www.example.com"
direction: "up"
register: result
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 list operations) Returned: always Sample: |
|
The domain name that was queried Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
List of cached DNS records for the domain Returned: always |
|
Record name Returned: always Sample: |
|
Record data Returned: always Sample: |
|
Time to live for the cached record Returned: always Sample: |
|
DNS record type Returned: always Sample: |
|
List of sub-zones under the queried domain Returned: always Sample: |