| Server IP : 3.96.16.70 / Your IP : 216.73.216.15 Web Server : Apache System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3.9/site-packages/certbot/plugins/__pycache__/ |
Upload File : |
a
�]eE � @ s d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm
Z
dd
lmZ ddl
mZ zddlmZ dd
lmZ W n ey� dZdZY n0 e�e�ZG dd� d�Zeeeef eeef eeeeef f d�dd�ZdS )z;Common code for DNS Authenticator Plugins built on Lexicon.� N)�Any)�Dict)�Mapping)�Optional)�Union)� HTTPError)�RequestException)�errors)�
dns_common)�ConfigResolver)�Providerc @ s� e Zd ZdZdd�dd�Zeeedd�dd�Zeeedd�d d
�Zedd�dd
�Ze ee
ej d�dd�Z
eee
ej d�dd�ZdS )�
LexiconClientzI
Encapsulates all communication with a DNS provider via Lexicon.
N)�returnc C s | d S )N� )�selfr r �F/usr/lib/python3.9/site-packages/certbot/plugins/dns_common_lexicon.py�__init__# s zLexiconClient.__init__)�domain�record_name�record_contentr c
C sj | � |� z| jjd||d� W nD tyd } z,tjd|dd� t�d�|���W Y d}~n
d}~0 0 dS )a�
Add a TXT record using the supplied information.
:param str domain: The domain to use to look up the managed zone.
:param str record_name: The record name (typically beginning with '_acme-challenge.').
:param str record_content: The record content (typically the challenge validation).
:raises errors.PluginError: if an error occurs communicating with the DNS Provider API
�TXT�Zrtype�nameZcontentz'Encountered error adding TXT record: %sT��exc_infozError adding TXT record: {0}N) �_find_domain_id�providerZ
create_recordr �logger�debugr �PluginError�format�r r r r �er r r �add_txt_record&