-
Notifications
You must be signed in to change notification settings - Fork 4.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
search
directive in resolv.conf
is ignored.
#2201
Comments
The current dns implementation does not honor the search option. see also https://github.com/Mashape/lua-resty-dns-client/blob/master/src/resty/dns/client.lua#L248 |
can you post the |
Sure:
Also, If I try to go back with the previous configuration (intermediate
I could create a separate issue for that if you want |
well, that error is exactly what it says. Change "localhost:53" to "127.0.0.1:53" in your config and you'll probably be fine. |
Sorry, I though that you wanted to maintain that kind of retro compatibility :) fixed that part then. Is there something in mind to support |
if you use fully qualified names, it should work. I think it can be added, but it would be related to another module that Kong uses under the hood; https://github.com/Mashape/lua-resty-dns-client It would involve honouring the |
Yes, in that case all works OK, but then I have to add (and duplicate) more logic. If it makes sense to you, I can try to send you a PR. |
I probably won't get to it on a short notice, so feel free to take a stab at it |
Closing, this is going into 0.11! :D |
Great! I'll be looking forward into it! :D thanks a lot! |
Summary
Hi all!
I know that many changes have been made to kong v0.10.x DNS solving, in particular, that kong will be able to read
resolv.conf
file. However, is kong able to process thesearch
option in this file?The problem I'm facing is that k8s append the namespace in this entry, so if I have a service
SVC
in namespaceNSNS
, and I try to (for example) ping it, DNS resolution will look for the actual name (SVC.NSNS.svc.cluster.local
), but kong is still giving me DNS resolution error. Previous to this update, I was using a local dnsmasq service, but I was hoping to remove that dependency with this version.I've tried to search through issues db, doc and changelog with no luck. Also, kong say that
resolv.conf
is used by default, so I assume at this point that the feature is not desired/not included by some reason. Is this possible in current kong version?Steps To Reproduce
Additional Details & Logs
The text was updated successfully, but these errors were encountered: