static List<InetAddress> resolve(String host, HostResolver hostResolver) throws UnknownHostException {
        InetAddress[] addresses = hostResolver.resolve(host);
        List<InetAddress> result = filterPreferredAddresses(addresses);
        if (log.isDebugEnabled())
            log.debug("Resolved host {} as {}", host, result.stream().map(InetAddress::getHostAddress).collect(Collectors.joining(",")));
        return result;
    }
Create a new channel builder from the provided configuration.

@param config client configs
@param time the time implementation
@param logContext the logging context

@return configured ChannelBuilder based on the configs.
clients/src/main/java/org/apache/kafka/clients/ClientUtils.java