| Server IP : 185.143.234.238 / Your IP : 185.215.232.195 Web Server : Apache System : Linux 81-12-52-146.cprapid.com 4.18.0-553.76.1.lve.el8.x86_64 #1 SMP Wed Oct 1 16:05:07 UTC 2025 x86_64 User : noavaranesama ( 1039) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/certbot/plugins/__pycache__/ |
Upload File : |
3
گa; � @ s d Z ddlZddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd lm
Z
dd
lmZ ddl
mZ yddlmZ dd
lmZ W n ek
r� dZdZY nX eje�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
jd�dd�Ze
eee
j d�dd�ZdS )�
LexiconClientzI
Encapsulates all communication with a DNS provider via Lexicon.
N)�returnc C s | d S )N� )�selfr r �(/usr/lib/python3.6/dns_common_lexicon.py�__init__# s zLexiconClient.__init__)�domain�record_name�record_contentr c C sh | j |� y| jjd||d� W nB tk
rb } z&tjd|dd� tjdj|���W Y dd}~X nX 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)�rtype�name�contentz'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&