hostname with underscore cannot be resolved #1229
-
Describe the bugThe RabbitMQ cannot resolve hostnames with an underscore. Reproduction stepsCreate a docker container with an underscore in the name. Create an application with the RabbitMQ library and use the container name with the underscore as hostname. Expected behaviorHostnames should be allowed to have underscore in it. Additional contextThe answer is just |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
At the bare minimum, you could have told us the following:
An even better issue report would have been some code we could compile and run to see this issue. An even better report than that would be a docker compose project that demonstrates the issue. Instead, you're expecting us to take time to try to reproduce this issue, when you could have made it very easy for us to do so. Take a second to think about all of the free software you use, and the millions of hours of work that went into creating it, and you can begin to realize why making it easy for free software providers to reproduce issues is the minimum you can do to help out. |
Beta Was this translation helpful? Give feedback.
-
This appears related, and is not limited to the Java client or RabbitMQ: https://forums.docker.com/t/underscore-in-domain-names/12584 |
Beta Was this translation helpful? Give feedback.
-
FYI, underscore is not technically valid in a hostname: https://stackoverflow.com/questions/10959757/the-use-of-the-underscore-in-host-names |
Beta Was this translation helpful? Give feedback.
-
RabbitMQ Java client does not limit what hostnames are or are not resolved. In fact, it is not involved in the resolution process but allows you to customize address resolution however you please (you just need to return a list of endpoints that are acceptable hostnames for/by the JDK standard library. |
Beta Was this translation helpful? Give feedback.
FYI, underscore is not technically valid in a hostname:
https://www.digicert.com/kb/ssl-support/underscores-not-allowed-in-fqdns.htm#:~:text=Note%3A%20The%20use%20of%20underscores,to%20be%20used%20in%20hostnames.
https://stackoverflow.com/questions/10959757/the-use-of-the-underscore-in-host-names
moby/moby#27447 (comment)