from typing import List


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

    :param netstat: Output of grab_dns
    :type netstat: bytes
    :return: A list of parsed values
    :rtype: List[bytes]
    """
    netstatrecords = [x.lstrip() for x in netstat.splitlines()]
    temp_list = []
    for record in netstatrecords:
        if len(record.split()) > 2 or record.startswith(b"Proto"):
            ip = record.split()[2]
            if ip not in [b"*:*", b"obtain", b"[::]:0"]:
                temp_list.append(ip)
    return temp_list