# Waiting for unicast hosts to resolve in 5.0.0-alpha5

**URL:** <https://discuss.elastic.co/t/waiting-for-unicast-hosts-to-resolve-in-5-0-0-alpha5/58609>\
**Category:** Elasticsearch\
**Created:** [August 22, 2016, 6:41pm UTC](https://discuss.elastic.co/t/waiting-for-unicast-hosts-to-resolve-in-5-0-0-alpha5/58609 "2016-08-22T18:41:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [August 22, 2016, 6:41pm UTC](https://discuss.elastic.co/t/waiting-for-unicast-hosts-to-resolve-in-5-0-0-alpha5/58609/1 "2016-08-22T18:41:32Z")

</div>

I'm trying to start up a ES 5.0.0-alpha5 cluster in a Mesosphere DC/OS environment. I want to launch elasticsearch like this:

```auto
$MESOS_SANDBOX/elasticsearch-5.0.0-alpha5/bin/elasticsearch -Ediscovery.zen.ping.unicast.hosts=node-0.elasticsearch.mesos,node-1.elasticsearch.mesos,node-2.elasticsearch.mesos ...

```

The thing is, these node names won't resolve until after this command runs and a few other things happen. This might take a minute. Elasticsearch starts up, throws a ton of java.net.UnknownHostException's, and quits after about 10 seconds.

I was hoping there was some zen unicast setting in [https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-discovery-zen.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-discovery-zen.html) that would tell Elasticsearch to wait a minute, but I couldn't find anything.

Is there anything like that, or another strategy I should use?

Might be a similar problem to [Can the ES client wait until the ES server hostname resolves?](https://discuss.elastic.co/t/can-the-es-client-wait-until-the-es-server-hostname-resolves/54068)

---

<div class="post-metadata">

**Author:** ![loren](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/loren/32/44942_2.png) [@loren](https://discuss.elastic.co/u/loren)\
**Post date:** [September 2, 2016, 3:33pm UTC](https://discuss.elastic.co/t/waiting-for-unicast-hosts-to-resolve-in-5-0-0-alpha5/58609/2 "2016-09-02T15:33:11Z")

</div>

For the next person who runs into this: turns out there's an [issue](https://github.com/elastic/elasticsearch/issues/14441) around this already.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:22pm UTC](https://discuss.elastic.co/t/waiting-for-unicast-hosts-to-resolve-in-5-0-0-alpha5/58609/3 "2017-07-05T22:22:49Z")

</div>


