def parse_records(cmd_output: list, record_type: str) -> list:
    """ Parse command output for A records

        Arguments:
            cmd_output(list): Command output

        Returns:
            list: List of data containing dicts
    """

    if not cmd_output:
        return []

    return [
        rec for rec in cmd_output if "type" in rec.keys() if rec["type"] == record_type
    ]