ZOOKEEPER-2982: Re-try DNS hostname -> IP resolution if node connection fails
This PR ports a fix from the 3.4 to the master branch, that was originally made in ZOOKEEPER-1506.
Closes ZOOKEEPER-2982.
Author: Eron Wright <eron.wright@gmail.com>
Reviewers: Andor Molnar <andor@cloudera.com>, Abraham Fine <afine@apache.org>, Flavio Junqueira <fpj@apache.org>
Closes #513 from EronWright/ZOOKEEPER-2982-master