Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the java-client seems to have DNS / lookup issues #36

Closed
EugenMayer opened this issue Nov 9, 2017 · 3 comments
Closed

the java-client seems to have DNS / lookup issues #36

EugenMayer opened this issue Nov 9, 2017 · 3 comments

Comments

@EugenMayer
Copy link

See this gocd-elastic-agent boilerplate

https://github.com/EugenMayer/gocd-boilerplate/blob/master/docker-compose.yml - all the issues here can be reproduced there.

When using a service name alias as a gocd-server URL: https://gocd-server:8154 .. the java client in the docker-container ( agent ) cannot look it up, while the docker-engine can do that just fine:

/ # nslookup gocd-server
nslookup: can't resolve '(null)': Name does not resolve

Name:      gocd-server
Address 1: 172.22.0.3 gocd_gocd-server_1.gocd_default
/ # ping gocd-server
PING gocd-server (172.22.0.3): 56 data bytes

which library is used for the DNS resolution?

@EugenMayer
Copy link
Author

When i use the docker-machine ip as the gocd-server url configuration, it works - but this should not break in the first place. Inter-container communication is always happening using service aliases, so this should be working for us.

In addition:
its fairly inconvinient to run and ... i cannot create a boilerplate like that because i do not know the IP beforehand .. in addition d4m users will need to know how to create and interface alias to lo0 before the even can think about using it.. because localhost wont work anyway..so thats even worse then not being able to create such a test boilerplate, thats a for more technical detail for a user to understand

@EugenMayer
Copy link
Author

this could be very much related to https://forums.docker.com/t/resolved-service-name-resolution-broken-on-alpine-and-docker-1-11-1-cs1/19307/21 - which would be rather either a did bug ( since its based on alpine ) or an alpine bug soley

@EugenMayer
Copy link
Author

thats a total different issue in the end moby/moby#23910

it basically because on d4m 127.0.0.x is used for dns resolving, which is an issue when you nest docker-in-docker.

Closing that issue, has nothing to do with elastic-agent or java in general, sorry

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

No branches or pull requests

1 participant