def _parse_resolv(self):
        self._servers = []
        try:
            with open('/etc/resolv.conf', 'rb') as f:
                content = f.readlines()
                for line in content:
                    line = line.strip()
                    if line:
                        if line.startswith(b'nameserver'):
                            parts = line.split()
                            if len(parts) >= 2:
                                server = parts[1]
                                if common.is_ip(server) == socket.AF_INET:
                                    if type(server) != str:
                                        server = server.decode('utf8')
                                    self._servers.append(server)
        except __HOLE__:
            pass
        if not self._servers:
            self._servers = ['8.8.4.4', '8.8.8.8']
dataset/ETHPy150Open ziggear/shadowsocks/shadowsocks/asyncdns.py/DNSResolver._parse_resolv