# Help about dns resolving to containers

**URL:** https://forums.suse.com/t/help-about-dns-resolving-to-containers/4528
**Category:** Rancher 1.x
**Created:** [November 4, 2016, 12:12am UTC](https://forums.suse.com/t/help-about-dns-resolving-to-containers/4528 "2016-11-04T00:12:13Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![yoram](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yoram](https://forums.suse.com/u/yoram)
#### Post date: [November 4, 2016, 12:12am UTC](https://forums.suse.com/t/help-about-dns-resolving-to-containers/4528/1 "2016-11-04T00:12:13Z")

</div>

Hi guys,  
I’m pretty new to Rancher and docker.  
I have currently 3 hosts set up.  
I’m trying to set up a web server which would be reachable at any time, even if 2 of the hosts are unreachable.  
I saw a load balancer option but I still don’t get where I should point the web domain name to?

Many thanks for your help

---

<div class="post-metadata">

### Author: ![yoram](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yoram](https://forums.suse.com/u/yoram)
#### Post date: [November 7, 2016, 3:26pm UTC](https://forums.suse.com/t/help-about-dns-resolving-to-containers/4528/2 "2016-11-07T15:26:35Z")

</div>

Hi guys sorry to bump it up.  
I must admit I’m pretty lost with the way rancher could orchestrate my containers.

I tried to set up a pretty simple web server and make it load balance on 3 hosts.

For that purpose I set up a load balancer scaled to 3 and pointed it to my ngninx service (scaled to 3 also).

I was expecting with this setup to be able to unplug network on any 2 of the 3 hosts and have the service still alive but it’s not ok.

I’m probably making it the wrong way.

Could you help ?

---

<div class="post-metadata">

### Author: ![denise](https://avatars.discourse-cdn.com/v4/letter/d/82dd89/32.png) [@denise](https://forums.suse.com/u/denise)
#### Post date: [November 10, 2016, 4:13am UTC](https://forums.suse.com/t/help-about-dns-resolving-to-containers/4528/3 "2016-11-10T04:13:54Z")

</div>

Did your nginx service have a health check? Otherwise, having a a host in reconnecting will not re-schedule the containers of the service onto another host.

---

<div class="post-metadata">

### Author: ![yoram](https://avatars.discourse-cdn.com/v4/letter/y/e0b2c6/32.png) [@yoram](https://forums.suse.com/u/yoram)
#### Post date: [November 10, 2016, 11:52am UTC](https://forums.suse.com/t/help-about-dns-resolving-to-containers/4528/4 "2016-11-10T11:52:15Z")

</div>

Hi Denise,  
many thanks,  
you’re right, I didn’set it up. Should I check it with with http or tcp ?

Here are more details about my setup.

I have 3 hosts, host1, host2 and host3

I have 2 stacks with 1 nginx service each, sidekicked with a php service. let’s call it web1,and web2.  
Each stack is scaled to 3.

I have another stack, created only for load balancing and dns routing.  
One load balancer service is created inside, deployed on every host, routing [web1.mydomain.com](http://web1.mydomain.com) to web1/nginx, and [web2.mydomain.com](http://web2.mydomain.com) to web2/nginx

load balancer is deployed on my hosts and dns are setup as round robin betwween the 3 hosts.

Could you kindly give remarks / advices about my setup ?
