Skip to content

Switch to go-dnsmasq as local DNS resolver#7

Open
janeczku wants to merge 1 commit into
sillelien:masterfrom
janeczku:go-dnsmasq
Open

Switch to go-dnsmasq as local DNS resolver#7
janeczku wants to merge 1 commit into
sillelien:masterfrom
janeczku:go-dnsmasq

Conversation

@janeczku
Copy link
Copy Markdown
Contributor

@janeczku janeczku commented Sep 9, 2015

I propose a streamlined approach to fix the DNS limitation of musl-libc based Docker containers by replacing dnsmasq and all the DNS workaround scripts with https://github.com/janeczku/go-dnsmasq.
This is essentially a slimmed down Golang fork of dnsmasq that has a feature to replicate the resolv.conf search keyword functionality.

Advantages:

  • True dynamic "search domain" DNS resolution instead of a semi-static hostslist
  • Instantly available on container start (no DNS fix setup delay)
  • No bash scripting necessary
  • Works OOB on Tutum, Kubernetes and any other DNS based service discovery platform
  • Base image looses an extra 1MB weight :-)

You may try it out with the docker-composer.yml or tutum.yml in the branch of this PR: https://github.com/janeczku/base-alpine/tree/go-dnsmasq

@neilellis
Copy link
Copy Markdown
Member

Hey sorry I've been off line for a little while I'm taking a look at your suggestion which seems like a very good one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants