...
Change parseAndValidateAddresses() in ClientUtils to enable allow full dns resolution which will result in adding all underlying hosts as kafka nodes. This will allow using an alias in bootstrap.servers
Forcing this behaviour down on existing users isn't desirable since it could break SSL authentication. This should therefore be an optional feature.
Proposed parameter :
bootstrap.servers.dns.lookup = true / false
Code snippets in the JIRA.
Rejected alternatives
Other option considered :
Adding a new cluster.alias parameter allowing DNS alias resolution, and keep bootstrap.servers behaviour intact.
But a proliferation of parameters addressing roughly the same thing with a slight difference in behavior might confuse users.