effectivelywild.technitium_dns.technitium_dns_list_blocked_zones module – List blocked zones
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_blocked_zones.
New in effectivelywild.technitium_dns 0.7.0
Synopsis
Retrieve a list of blocked zones.
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 |
|
Allows specifying the direction of browsing the zone. This option allows the server to skip empty labels in the domain name when browsing up or down. Choices:
|
|
The domain name to list records. If not passed, the domain is set to empty string which corresponds to the zone root. |
|
Whether to validate SSL certificates when making API requests Choices:
|
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_add_blocked_zone
Add a domain to the blocked zones
- effectivelywild.technitium_dns.technitium_dns_delete_blocked_zone
Delete a domain from the blocked zones
- effectivelywild.technitium_dns.technitium_dns_flush_blocked_zone
Flush all blocked zones
- effectivelywild.technitium_dns.technitium_dns_list_allowed_zones
List allowed zones
Examples
- name: List all blocked zones
technitium_dns_list_blocked_zones:
api_url: "http://localhost"
api_token: "myapitoken"
register: result
- debug:
var: result.zones
- name: List blocked zones for specific domain
technitium_dns_list_blocked_zones:
api_url: "http://localhost"
api_token: "myapitoken"
domain: "ads.example.com"
register: result
- name: List blocked zones browsing up
technitium_dns_list_blocked_zones:
api_url: "http://localhost"
api_token: "myapitoken"
domain: "tracker.ads.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 DNS records in the blocked zone Returned: always |
|
Record name Returned: always Sample: |
|
Record data Returned: always |
|
Time to live Returned: always Sample: |
|
Record type Returned: always Sample: |
|
List of zone names Returned: always Sample: |