def _get_txt_records(domain):
    """
    Retrieve TXT records for a given domain and return list of Record Objects

    :param domain: FQDN
    :return: list of Record objects
    """
    zone = _get_zone_name(domain)
    path = f"/v1/zones/{zone}/{domain}/TXT"

    function = inspect.currentframe().f_code.co_name
    log_data = {
        "function": function
    }
    try:
        records = _get(path)
        log_data["message"] = "Retrieved TXT Records Successfully"
        log_data['records'] = records
        current_app.logger.debug(log_data)

    except Exception as err:
        capture_exception()
        log_data["Exception"] = err
        log_data["message"] = "Failed to Retrieve TXT Records"
        current_app.logger.debug(log_data)
        records = {}
        records['domain'] = domain
        records['zone'] = zone
        records['type'] = 'TXT'
        records['answers'] = []

    return records

    Retrieve TXT records for a given domain and return list of Record Objects

    :param domain: FQDN
    :return: list of Record objects
    
lemur/plugins/lemur_acme/nsone.py