Skip to content

Avoid V6 queries in docker domain going to external nameservers#1039

Merged
aboch merged 1 commit intomoby:masterfrom
sanimej:fixes
Mar 21, 2016
Merged

Avoid V6 queries in docker domain going to external nameservers#1039
aboch merged 1 commit intomoby:masterfrom
sanimej:fixes

Conversation

@sanimej
Copy link
Copy Markdown

@sanimej sanimej commented Mar 21, 2016

Stub resolvers try to resolve a name to IPv6 before trying IPv4. The embedded DNS server was forwarding IPv6 queries if the name can't be resolved to an IPv6 address, even if its a service name present in the docker domain.

Its better to avoid this because..

  1. it can get mapped to wrong/unintended IP
  2. if the external name server is not reachable the resolution takes long waiting for the query to timeout
  3. its better to avoid docker domain service names going to external name servers.

Signed-off-by: Santhosh Manohar santhosh@docker.com

Signed-off-by: Santhosh Manohar <santhosh@docker.com>
@mavenugo
Copy link
Copy Markdown
Contributor

LGTM

1 similar comment
@aboch
Copy link
Copy Markdown
Contributor

aboch commented Mar 21, 2016

LGTM

aboch added a commit that referenced this pull request Mar 21, 2016
Avoid V6 queries in docker domain going to external nameservers
@aboch aboch merged commit d8c7c03 into moby:master Mar 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants