certbot_dns_rfc2136.dns_rfc2136¶
DNS Authenticator using RFC 2136 Dynamic Updates.
-
class
certbot_dns_rfc2136.dns_rfc2136.Authenticator(*args, **kwargs)[source]¶ Bases:
certbot.plugins.dns_common.DNSAuthenticatorDNS Authenticator using RFC 2136 Dynamic Updates
This Authenticator uses RFC 2136 Dynamic Updates to fulfull a dns-01 challenge.
-
class
certbot_dns_rfc2136.dns_rfc2136._RFC2136Client(server, key_name, key_secret, key_algorithm)[source]¶ Bases:
objectEncapsulates all communication with the target DNS server.
-
add_txt_record(record_name, record_content, record_ttl)[source]¶ Add a TXT record using the supplied information.
Parameters: - record_name (str) – The record name (typically beginning with ‘_acme-challenge.’).
- record_content (str) – The record content (typically the challenge validation).
- record_ttl (int) – The record TTL (number of seconds that the record may be cached).
Raises: certbot.errors.PluginError – if an error occurs communicating with the DNS server
-
del_txt_record(record_name, record_content)[source]¶ Delete a TXT record using the supplied information.
Parameters: - record_name (str) – The record name (typically beginning with ‘_acme-challenge.’).
- record_content (str) – The record content (typically the challenge validation).
- record_ttl (int) – The record TTL (number of seconds that the record may be cached).
Raises: certbot.errors.PluginError – if an error occurs communicating with the DNS server
-
_find_domain(record_name)[source]¶ Find the closest domain with an SOA record for a given domain name.
Parameters: record_name (str) – The record name for which to find the closest SOA record. Returns: The domain, if found. Return type: str Raises: certbot.errors.PluginError – if no SOA record can be found.
-