# Trouble with DNS Resolvers sticking to single IP address

**URL:** <https://discourse.haproxy.org/t/trouble-with-dns-resolvers-sticking-to-single-ip-address/146>\
**Category:** Help!\
**Created:** [February 26, 2016, 7:27pm UTC](https://discourse.haproxy.org/t/trouble-with-dns-resolvers-sticking-to-single-ip-address/146 "2016-02-26T19:27:59Z")\
**Posts on this page:** 1\
**Showing post:** 25

<div class="post-metadata">

**Author:** ![danih](https://avatars.discourse-cdn.com/v4/letter/d/9de053/32.png) [@danih](https://discourse.haproxy.org/u/danih)\
**Post date:** [June 25, 2018, 5:39pm UTC](https://discourse.haproxy.org/t/trouble-with-dns-resolvers-sticking-to-single-ip-address/146/25 "2018-06-25T17:39:02Z")

</div>

Baptiste, I tried to use multiple servers but the requests are not balanced evenly between the servers.

I built an example using Docker and docker-compose. The backend servers count each request they receive and print the number of requests received after 60 seconds.

Code:

> <https://gist.github.com/danihodovic/c89d685b95b1023fc16591b6e74d1134>

The output is

```auto
api_4 | f8e1414ea551 0
api_1 | 860eb040651c 0
api_2 | 6af96d901ea8 179
api_5 | 1f15abd0d461 60
api_3 | 271ae04ff5cc 60

```

One API server receives 180 requests, two receive 60 each and another two receive 0.

Is it possible to round robin to servers which were resolved with DNS?

---

_[View the full topic](https://discourse.haproxy.org/t/trouble-with-dns-resolvers-sticking-to-single-ip-address/146)._
