@classmethod
    def getMany(cls, host, resetResolver=False, stale=False):
        # Fetch fresh results only first
        ret = cls._cache.get(host, None, stale=False)
        if ret is not None:
            return ret
        try:
            results = cls._resolve(host)
        except (__HOLE__, socket.error):
            if not resetResolver and not stale:
                raise
            if stale:
                ret = cls._cache.get(host, None, stale=True)
                if ret is not None:
                    return ret
            # Recursively call ourselves
            util.res_init()
            return cls.get(host, resetResolver=False, stale=False)
        else:
            # [(family, type, proto, canonname, (host, port, ...))]
            results = [x[4][0] for x in results]
            cls._cache.set(host, results)
            return results
dataset/ETHPy150Open sassoftware/conary/conary/lib/httputils.py/IPCache.getMany