'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'

def add_txt_record(self, domain, record_name, record_content):

    self._find_domain_id(domain)
    try:
        self.provider.create_record(type='TXT', name=record_name, content=record_content)
    except RequestException as e:
        logger.debug('Encountered    error    adding    TXT    record:    %s', e, exc_info=True)
        raise errors.PluginError('Error    adding    TXT    record:    {0}'.format(e))
