Java driver 4.x supports use of unresolved InetAddress objects as contact points, but it would be nice to create them automatically if user provides host names as contact points. We can use Guava's InetAddresses class to detect if the contact point is specified as IP or as host name, and create corresponding unresolved InetAddress. Such contact points should stay unresolved, and could be resolved to IP addresses during initialization only if there is a special flag set (default to not set).
This should make life in the Kubernetes, etc. easier, and also won’t require a special coding in the Spark connector etc.