def _get_machines_cache_from_dns(self, host: str, port: int) -> List[str]:
        """One host might be resolved into multiple ip addresses. We will make list out of it"""
        if self.protocol == 'http':
            # Filter out unexpected results when python is compiled with --disable-ipv6 and running on IPv6 system.
            ret = [uri(self.protocol, (res[4][0], res[4][1])) for res in self._dns_resolver.resolve(host, port)
                   if isinstance(res[4][0], str) and isinstance(res[4][1], int)]
            if ret:
                return list(set(ret))
        return [uri(self.protocol, (host, port))]
One host might be resolved into multiple ip addresses. We will make list out of it
patroni/dcs/etcd.py