Use unresolved InetAddress if the host names were provided as contact points

Description

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.

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Alexey Ott

Labels

None

PM Priority

None

Reproduced in

None

Affects versions

None

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Priority

Major
Configure