community.dns.hosttech_dns_zone_info module – Retrieve zone information in Hosttech DNS service
Note
This module is part of the community.dns collection (version 2.9.7).
You might already have this collection installed if you are using the ansible
package.
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 community.dns
.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: community.dns.hosttech_dns_zone_info
.
New in community.dns 0.2.0
Synopsis
Retrieves zone information in Hosttech DNS service.
Requirements
The below requirements are needed on the host that executes this module.
lxml
Parameters
Parameter |
Comments |
---|---|
The password for the Hosttech API user. If provided, Mutually exclusive with |
|
The password for the Hosttech API user. Mutually exclusive with Since community.dns 1.2.0, the alias |
|
The username for the Hosttech API user. If provided, Mutually exclusive with |
|
Attributes
Attribute |
Support |
Description |
---|---|---|
Action group: community.dns.hosttech added in community.dns 2.4.0 |
Use |
|
Support: full This action does not modify state. |
Can run in |
|
Support: N/A This action does not modify state. |
Will return details on what has changed (or possibly needs changing in |
Examples
- name: Retrieve details for foo.com zone
community.dns.hosttech_dns_zone_info:
zone_name: foo.com
hosttech_username: foo
hosttech_password: bar
register: rec
- name: Retrieve details for zone 23
community.dns.hosttech_dns_zone_info:
zone_id: 23
hosttech_token: access_token
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The ID of the zone. Returned: success Sample: |
|
Extra information returned by the API. Returned: success Sample: |
|
Whether DNSSEC is enabled for the zone or not. Returned: When |
|
The email address contacted when the DNSSEC key is changed. Is Returned: When |
|
The DS records. See Section 5 of RFC 4034 and Section 2.1 of RFC 4034 for details. Is Returned: When |
|
This value is the algorithm number of the DNSKEY RR referred to by the DS record. A list of values can be found in Appendix A.1 of RFC 4034. Returned: success Sample: |
|
A digest of the DNSKEY RR record this DS record refers to. Returned: success Sample: |
|
This value identifies the algorithm used to construct the digest. A list of values can be found in Appendix A.2 of RFC 4034. Returned: success Sample: |
|
The Key Tag field lists the key tag of the DNSKEY RR referred to by the DS record. Returned: success Sample: |
|
Must be 3 according to RFC 4034. Returned: success Sample: |
|
The public key material. Returned: success Sample: |
|
The zone’s DNS contact mail in the SOA record. Returned: success |
|
The zone’s TTL. Returned: success |
|
The name of the zone. Returned: success Sample: |