effectivelywild.technitium_dns.technitium_dns_get_record module – Get DNS record(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_record
.
New in effectivelywild.technitium_dns 0.1.0
Synopsis
Get DNS resource records from a Technitium DNS authoritative zone using its API.
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 |
|
If true, list all records in the zone. If false, only records for the given domain. Choices:
|
|
The record or zone name (e.g., test.example.com/example.com). The use of ‘domain:’ is also supported to align with API. |
|
Whether to validate SSL certificates when making API requests. Choices:
|
|
The authoritative zone name (optional, defaults to closest match). |
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_add_record
Used to add DNS records
- effectivelywild.technitium_dns.technitium_dns_delete_record
Used to delete DNS record details
Examples
- name: Get specific record by name
technitium_dns_get_records:
api_url: "http://localhost"
api_token: "myapitoken"
port: 5380
name: "record.example.com"
- name: Get all records for a zone
technitium_dns_get_records:
api_url: "http://localhost"
api_token: "myapitoken"
port: 5380
name: "example.com"
listZone: true
validate_certs: false
- name: Get SOA and NS records for zone
technitium_dns_get_records:
api_url: "http://localhost"
api_token: "myapitoken"
port: 5380
name: "example.com"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
Complete raw API response from Technitium DNS Returned: always |
|
The core data payload from the API Returned: success |
|
Array of DNS record objects with complete details Returned: success |
|
Whether the record is disabled Returned: always |
|
DNSSEC status of the record Returned: always |
|
Record expiration TTL in seconds Returned: always |
|
Record expiration TTL as human-readable string Returned: always |
|
When the record was last modified Returned: always |
|
When the record was last used Returned: always |
|
Full domain name of the record Returned: always |
|
Record-specific data (varies by record type) Returned: always Sample: |
|
Record TTL in seconds Returned: always |
|
Record TTL as human-readable string Returned: always |
|
DNS record type Returned: always |
|
Information about the zone containing the records Returned: always |
|
Zone catalog information Returned: always |
|
Whether the zone is disabled Returned: always |
|
DNSSEC status of the zone Returned: always |
|
Whether the zone is internal Returned: always |
|
When the zone was last modified Returned: always |
|
Zone name Returned: always |
|
Whether zone notification failed Returned: always |
|
List of hosts for which notification failed Returned: always |
|
SOA serial number of the zone Returned: always |
|
Zone type (e.g., Primary, Secondary) Returned: always |
|
API response status Returned: always Sample: |
|
Whether the module made changes (always false for get operations) Returned: always Sample: |
|
Whether the module failed Returned: always Sample: |
|
List of DNS records (convenience extraction from api_response.response.records) See api_response.response.records for detailed field documentation Returned: always Sample: |