Question

Lost hostname resolution on Ubuntu Docker 16.04

Posted January 22, 2017 2k views
Ubuntu DNS

I don’t know what happened.. I lost DNS resolution on my Ubuntu Docker 16.04 DO droplet.

root@gpc-docker-sfo2:resolvconf$ telnet gitlab.com 443
telnet: could not resolve gitlab.com/443: Temporary failure in name resolution
root@gpc-docker-sfo2:resolvconf$ cat /etc/resolv.conf 

I don’t know what happened? How do I get this back working?

(Ubuntu Docker 1.12.5 on 16.04)

As a note: I’ve always kept my apps updated via apt-get. Was there something related to the recent Docker 13.0 update?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

1 answer

I fixed it!

Well. I don’t know what happened: looks like something went amiss when I added IPv6 to this image (post-create) through the console.

I creating a new image (IPv6 on create) in attempts to replicate. I found two differences in the new image:

  • It had IPv6 settings within interfaces.d/50-cloud-init.cfg
  • It didn’t have ubuntu-fan files within the if-[up/down].d/ directories

So, I added IPv6 settings and removed the ubuntu-fan files.

Rebooted the box, and we’re back working!

Any idea what the ubuntu-fan files are for? Are they necessary?

Submit an Answer