# Device unable to resolve internet address names

**URL:** <https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511>\
**Category:** Product support\
**Tags:** dind\
**Created:** [July 22, 2017, 8:49am UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511 "2017-07-22T08:49:19Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 22, 2017, 8:49am UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/1 "2017-07-22T08:49:19Z")

</div>

I’m playing with Docker in Docker and using a Pi 3 as the test device.  
The Dockerfile.template is pretty simple

```
FROM resin/%%RESIN_MACHINE_NAME%%-debian:jessie

# Let's start with some basic stuff.
RUN apt-get update && apt-get install -yq --no-install-recommends \    
   apt-transport-https \
   ca-certificates \
   curl \
   lxc \
   iptables \
   && apt-get clean && rm -rf /var/lib/apt/lists/

# Install Docker from hypriot repos
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 37BBEE3F7AD95B3F && \
   echo "deb https://packagecloud.io/Hypriot/Schatzkiste/debian/ wheezy main" > 
/etc/apt/sources.list.d/hypriot.list && \
  apt-get update && apt-get install -yq --no-install-recommends \
   docker-hypriot docker-compose \
   && rm -rf /var/lib/apt/lists/

COPY ./wrapdocker /usr/local/bin/wrapdocker

COPY ./apps /apps
WORKDIR /apps

# Define additional metadata for our image.
VOLUME /var/lib/docker
ADD start.sh /start.sh
CMD ["bash", "start.sh"]

```

The image compiles OK, it downloads to the device, the device comes online, I see the logs scrolling and I can get in remotely using the terminal. However, when [start.sh](http://start.sh) runs it does a

```
docker compose up

```

and at this point, I get errors saying that the docker index cannot be reached and everything stops.  
Just as importantly, the device stops updating its image: i.e. if I update the dockerfile and push a new version, it gets rebuilt on [resin.io](http://resin.io) but does not get downloaded to the device. The only solution is to delete the device and start afresh.

By installing some test tools I have established that the problem seems to be with name resolution. I can ping IP addresses but not dns names.

I’ve tried force pushing a different image and this works fine, so it’s not the network or the device hardware.

Any ideas of where to start looking?

---

<div class="post-metadata">

**Author:** ![nghiant2710](https://avatars.discourse-cdn.com/v4/letter/n/90db22/32.png) [@nghiant2710](https://forums.balena.io/u/nghiant2710)\
**Post date:** [July 24, 2017, 7:55am UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/3 "2017-07-24T07:55:17Z")

</div>

@Guff666, what do you have in your compose file? If possible, can you please reproduce the issue so we can ssh into your device and grab some logs?

Also, I’ve asked our team if anyone had the same issue before and we will come back as soon as possible.

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 24, 2017, 12:27pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/4 "2017-07-24T12:27:59Z")

</div>

There’s very little in the compose file, other than comments. here’s the bit that isn’t commented out:

```
mysql:
  image: "hypriot/rpi-mysql"
  environment:

# set mysql credentials
  - MYSQL_ROOT_PASSWORD=secure
  - MYSQL_USER=flight
  - MYSQL_PASSWORD=flight
  - MYSQL_DATABASE=flight
volumes:
# bind the folder /opt/flight/mysql on the raspberry as datastorage
  - /opt/flight/mysql:/var/lib/mysql

```

I’ll PM you the UUID of the device and app

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 24, 2017, 12:36pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/5 "2017-07-24T12:36:03Z")

</div>

OK, I can’t see how you send a private message on this forum. Here’s the UID

b907123159a9e007a2c2271582dcf391

---

<div class="post-metadata">

**Author:** ![hedss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hedss/32/210_2.png) [@hedss](https://forums.balena.io/u/hedss)\
**Post date:** [July 24, 2017, 12:56pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/6 "2017-07-24T12:56:41Z")

</div>

Thanks for the UUID. The only thing of note I can see in the compose file is that of binding `/opt/flight/mysql` to the MySQL database. This isn’t a persistent storage area, so will vanish the next time a reboot/app restart occurs (and this might be causing your error, though without the actual error message I can only speculate).

This shouldn’t be preventing a new app build from being downloaded to your device, however. I shall try and replicate this issue and get back to you.

---

<div class="post-metadata">

**Author:** ![hedss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hedss/32/210_2.png) [@hedss](https://forums.balena.io/u/hedss)\
**Post date:** [July 24, 2017, 2:09pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/7 "2017-07-24T14:09:31Z")

</div>

Hi,

I’ve not been able to replicate this. If you could supply an archive with a cut-down example where this occurs, or a Github repo of the same, this would help us try and replicate the issue.

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 24, 2017, 2:22pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/8 "2017-07-24T14:22:18Z")

</div>

Sure. here you go.

[https://github.com/garethhowell/resin-multi01](https://github.com/garethhowell/resin-multi01)

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 24, 2017, 2:59pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/9 "2017-07-24T14:59:16Z")

</div>

I should have added, the app is gareth/carcam01

---

<div class="post-metadata">

**Author:** ![hedss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hedss/32/210_2.png) [@hedss](https://forums.balena.io/u/hedss)\
**Post date:** [July 24, 2017, 3:28pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/10 "2017-07-24T15:28:17Z")

</div>

Hi,  
Thanks for the repo link! I can confirm that we see the same issue. We’ll look into it and try to determine the issue.

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 24, 2017, 3:30pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/11 "2017-07-24T15:30:16Z")

</div>

Cheers.

---

<div class="post-metadata">

**Author:** ![hedss](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/hedss/32/210_2.png) [@hedss](https://forums.balena.io/u/hedss)\
**Post date:** [July 25, 2017, 1:10pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/12 "2017-07-25T13:10:50Z")

</div>

Hi again,

The cause appears to be that the `dind` instance of docker is removing the rules we use to allow containers to successfully use DNS.

We’ve raised an issue internally and will be looking into this in more detail. Apologies for the inconvenience this causes.

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [July 25, 2017, 3:28pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/13 "2017-07-25T15:28:28Z")

</div>

No worries. Always happy to dig out these sort of issues when the quality of support is so high.

---

<div class="post-metadata">

**Author:** ![Guff666](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/guff666/32/511_2.png) [@Guff666](https://forums.balena.io/u/Guff666)\
**Post date:** [September 21, 2017, 4:12pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/14 "2017-09-21T16:12:10Z")

</div>

Just curious to know if there has been a resolution of this?

---

<div class="post-metadata">

**Author:** ![thgreasi](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/thgreasi/32/454_2.png) [@thgreasi](https://forums.balena.io/u/thgreasi)\
**Post date:** [September 22, 2017, 9:50am UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/15 "2017-09-22T09:50:07Z")

</div>

Hi,  
We are working on it.  
We will get back to you as soon as this gets released.

---

<div class="post-metadata">

**Author:** ![lekkas](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/lekkas/32/78_2.png) [@lekkas](https://forums.balena.io/u/lekkas)\
**Post date:** [May 5, 2018, 1:13pm UTC](https://forums.balena.io/t/device-unable-to-resolve-internet-address-names/1511/16 "2018-05-05T13:13:50Z")

</div>

Hi @Guff666,

Just in case you missed it, we’d like to let you know that [resin.io](http://resin.io) now natively supports multicontainer applications. The docker-in-docker workaroud is no longer needed, and the DNS issues mentioned in this thread should by now be resolved.

Feel free to check our release blog post for more information [https://resin.io/blog/multicontainer-on-resin-io-is-here/](https://resin.io/blog/multicontainer-on-resin-io-is-here/)

Thanks!
