from typing import List


def parse_dns(dns: bytes) -> List[bytes]:
    """Parse the output of grab_dns, returning a list of parsed values that we would like to search.

    :param dns: Output of grab_dns
    :type dns: bytes
    :return: A list of parsed values (Record Name, CNAME, A (HOST))
    :rtype: List[bytes]
    """
    dnsrecords = dns.splitlines()
    search_terms = [b"A (Host)", b"CNAME", b"Record Name"]
    return [
        record.split(b":")[1].strip()
        for record in dnsrecords
        if any(x in record for x in search_terms)
    ]