-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
Can't resolve names of containers in the same docker network if their names contain dots #49223
Comments
This is almost certainly caused by the c-ares upgrade in v18.16.1. That said... does "test3.4." (note the trailing dot) work? c-ares parses /etc/resolv.conf and if you have e.g. a search domain set, that will make it look up something different from what you intend unless you use a FQDN. |
I would like to add, that I can't reproduce the problem with node v18.16.1. Furthermore, I have a search domain set in my docker container, but using a dot at the end of the hostname doesn't help. |
Does removing the search domain help? Can you try reducing your resolv.conf to just a single |
I've changed
with the same result as before. Before this change I also had an |
I think that this issue could be related to a change of A comment in this function says: If asciiDomain ends in a number, then return the result of IPv4 parsing asciiDomain. I think that this would not work for #49330 is an issue where the change in |
This is already fixed with #48873. It is a part of the next v18 release. |
Might be a duplicate of: #49203 |
I believe this was fixed in v18.18.0. Closing but LMK if there is reason to reopen. |
Version
v18.17.1
Platform
Linux ca539b8b4950 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 GNU/Linux
Subsystem
dns
What steps will reproduce the bug?
How often does it reproduce? Is there a required condition?
The problem is reproducible if the name of the docker container ends with
.4
for example. In contrast, I can resolve names of docker containers liketest3.z
correctly.What is the expected behavior? Why is that the expected behavior?
The names of the docker containers in the same docker network should be resolvable even if they contain dots.
What do you see instead?
Additional information
Interestingly, the problem is not reproducible with node:18.16 but with node:18.17 and the usual name resolution inside the docker container is working properly as one can verify with
ping
for example. Furthermore, the problem is not reproducible, if the name of the docker container doesn't contain any dots.I'm using docker engine version 24.0.5
The people from the docker-node repository already verified, that there isn't anything they could do to solve this problem. (Refer to: nodejs/docker-node#1954)
Here is some information from wireshark about the DNS request, that node has sent. It doesn't seem to be the proper request here. At least node is not asking for
test3.4
.The text was updated successfully, but these errors were encountered: