title: Spring data redis unable to connect to Redis DNS proxy
body: <p>I have a problem on connecting Spring Redis with the client.
  So I have a proxy with an hostname and there are 3 redis nodes but only one is available.
  I'm using the LettuceConnectionFactory to create the connection.
  When the application tries to connect to the client I got an exception:</p>
  
  <pre><code>Caused by: java.lang.RuntimeException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis on unavailableIP:13376; nested exception is com.lambdaworks.redis.RedisConnectionException: Unable to connect to /unavailableIP:13376
  Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'enableRedisKeyspaceNotificationsInitializer' defined in org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration: Invocation of init method failed; nested exception is org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis on unavailableIP:13376; nested exception is com.lambdaworks.redis.RedisConnectionException: Unable to connect to /unavailableIP:13376
  Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unable to connect to Redis on unavailableIP:13376; nested exception is com.lambdaworks.redis.RedisConnectionException: Unable to connect to /unavailableIP:13376
  Caused by: com.lambdaworks.redis.RedisConnectionException: Unable to connect to /unavailableIP:13376
  Caused by: java.net.ConnectException: Connection refused: no further information: /unavailableIP:13376"}}
  </code></pre>
  
  <p>Instead.. if I try to connect from Redis Desktop Manager, it works..</p>
  
  <p>Is there a way to apply a "retry" to get the available ip?</p>