Alpine DNS not resolving

1 post / 0 new
#1 Fri, 2016-11-11 17:13
kevin28
  • kevin28's picture
  • Offline
  • Last seen: 1 year 4 months ago
  • Joined: 2016-11-11

My Alpine 3.4 containers do not see local dns services setup by consul. I am running the latest stable version of CoreOS which has Docker 1.10.3. I am also using marathon to launch my containers and register my services such as ""SERVICE_61686_TAGS" : "haproxy,haproxy_tcp=61686,urlprefix-activemq.service.consul/"," I can see the service get registered and it resolves on my coreos system "nslookup activemq.service.consul" and it works fine in other containers such as centos, in the container I can do a "nslookup activemq.service.consul" and it works fine.

However, in my Alpine 3.4 containers "nslookup activemq.service.consul" does not work, it is not resolving. My /etc/resolv.conf in the container is as follows.

nameserver 10.7.159.167
nameserver 10.7.158.2
nameserver 10.7.158.3
search nh-fxlab.int

Any help would be appreciated.

Thanks,

Kevin