-
Notifications
You must be signed in to change notification settings - Fork 155
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
Cannot resolve domain in client in k8s #881
Comments
Hostname resolution was added, it can be turned off via Options.Builder().noResolveHostnames() Do you happen to have a stacktrace for that exception, maybe we can find a way to address it. |
Yes, with this option work well now. Please explain why it is needed?
there are no more logs |
It's needed because hostname resolution was added and made as the default. It is possible that there is a way for resolution to work properly, which is why I needed the stack trace for your original configuration.
|
here they are:
|
So that didn't help. I guess I need to talk to our Kubernetes guy to figure out how exactly ip addresses are resolved and why it doesn't fail. I guess for now I can try to determine if port is -1 after resolve and toss that resolution. |
If I build a snapshot from a branch, would you be able to test? I'll add some debug to the hostname resolution and we'll see what exactly the resolver does. |
yes, i can test it |
Can you try this:
|
I'm going to make some assumptions, please correct me if I'm wrong:
I updated the test code and have a fix. It makes the assumption that if the getHostAddress has the |
@z0mb1ek Apologies I was out of office for the last 2 weeks for a personal issue. If you can confirm the last reply item 2, I can make a fix. |
@scottf sorry, i did not see your reply. It starts working. I can ask my devops what has changed in dns resolving |
I has search domain at my /etc/resolv.conf:
On 2.16.8 version it worked well, i resolved nats:4222 on my service in kubernetes. But when i upgrade to 2.16.9 it starts raising exception:
i see this commits https://github.com/nats-io/nats.java/pull/847/files
could that be the reason?
The text was updated successfully, but these errors were encountered: