-
-
Notifications
You must be signed in to change notification settings - Fork 933
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
DNS cache is not compatible with DNS suffixes #1175
Comments
I don't have kubernetes so I cannot reproduce... |
But I think I can reproduce in another way, will check tomorrow. |
I can confirm that this issue on Kubernetes. |
Short host name resolving works as expected. It's just that it doesn't communicate with |
resolv.conf
Okay, will it be fixed? Right now I have worked around by disabling DNS cache. |
Actually on Kubernetes, the CoreDNS service has its own caching mechanism so we are not seeing much difference between cache enable and disable. |
I can reproduce on Windows |
resolv.conf
The only possible way is to fallback to |
@szmarczak I think some flag or option that will switch "preformance mode" and regular dns lookup should be good enough. Or try to fallback to |
The code is pretty much finished, I just need to write the tests. |
Well, by default it remembers the errors for 150ms and the OS results for 1s, so there should be no impact at all. |
Fixed in szmarczak/cacheable-lookup@dfefae2 but haven't made a release yet. I'll try to fix #1173 first. |
Fixed in |
Describe the bug
Actual behavior
Got doesn't resolve short dns names and fails with error.
...
Expected behavior
Got resolve short dns names.
...
Code to reproduce
With v11 it produce
It's easily reproduced also with some kubernetes dns names as well. E.g.
http://short-name-host.default
and so on.And it starts working only if you provide full name like
short-name-host.default.svc.cluster.local
.In other words v11 doesn't work well with anything that's written in
search
section of resolv.confMight be an issue with https://github.com/szmarczak/cacheable-lookup#readme, so @szmarczak maybe you can figure out.
Checklist
The text was updated successfully, but these errors were encountered: