You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No DNS Search Domain support in C-Ares calls #17850
PS: Be careful to not use Alpine Linux as Docker based image due to muslc being used and not glibc. I will create a ticket about this in their repository later.
EDIT: Might be related to this issue that was supposedly fixed in the past: #9799
This is about node.js not honoring the domain or search attribute in /etc/resolv.conf? That's because we call ares_query(), not ares_search(). ares_query() does not take search domains into account.
ares_search() cannot be the default because it makes up to num_search_domains + 1 queries but we could add a { search: true } option.
@bnoordhuis I see, good to know. Thanks for the quick answer.
The situation we encountered at my company is that we use a VPN to connect to our Kubernetes cluster. Services can have multiple instances and use DNS hostnames to load balance to one or the other (through KubeDNS). We also put these hostnames behind subdomains of one of our domains so that even development services benefit of our TLS certificate.
Since the hostnames are a bit long outside of the Kubernetes internal network, we let the VPN access the Kuberenetes DNS resolver to allow for short-hand service hostnames usage on our development machines.
Not the most common use case of course, more of a convenience thing. So I understand if this isn't a priority.
It did take us a bit of time to understand why certain apps were affected or not because some DNS resolutions used dns.lookup() which worked fine in this case and others were using dns.resolve() which didn't.
@bnoordhuis took a shot in #22226 , based on your review suggestions in #19548 . complete noob at C++, though, so might require a bit of handholding. Also, need guidance in writing tests.
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
Activity
bnoordhuis commentedon Dec 25, 2017
This is about node.js not honoring the
domainorsearchattribute in/etc/resolv.conf? That's because we callares_query(), notares_search().ares_query()does not take search domains into account.ares_search()cannot be the default because it makes up tonum_search_domains + 1queries but we could add a{ search: true }option.Mickael-van-der-Beek commentedon Dec 25, 2017
@bnoordhuis I see, good to know. Thanks for the quick answer.
The situation we encountered at my company is that we use a VPN to connect to our Kubernetes cluster. Services can have multiple instances and use DNS hostnames to load balance to one or the other (through KubeDNS). We also put these hostnames behind subdomains of one of our domains so that even development services benefit of our TLS certificate.
Since the hostnames are a bit long outside of the Kubernetes internal network, we let the VPN access the Kuberenetes DNS resolver to allow for short-hand service hostnames usage on our development machines.
@bcorijn Correct me if I'm wrong?
Not the most common use case of course, more of a convenience thing. So I understand if this isn't a priority.
It did take us a bit of time to understand why certain apps were affected or not because some DNS resolutions used
dns.lookup()which worked fine in this case and others were usingdns.resolve()which didn't.Manicqin commentedon Mar 4, 2018
Hi, If this issue is still open I can take it.
bnoordhuis commentedon Mar 4, 2018
@Manicqin You mean adding a
searchoption? Go for it; no one is working on it, AFAIK.Add Support for resolving DNS using search list for host-name loopkup.
UtkarshGupta-CS commentedon Jun 10, 2018
@Manicqin will you be able to resolve this issue or can I take up this issue?
UtkarshGupta-CS commentedon Jun 11, 2018
@bnoordhuis Can I work on this issue?
bnoordhuis commentedon Jun 11, 2018
Sure. The other pull request looks to have stalled.
SirR4T commentedon Aug 10, 2018
@bnoordhuis took a shot in #22226 , based on your review suggestions in #19548 . complete noob at C++, though, so might require a bit of handholding. Also, need guidance in writing tests.
fhinkel commentedon Oct 30, 2019
Should this remain open?
github-actions commentedon Mar 4, 2022
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.
github-actions commentedon Apr 4, 2022
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
For more information on how the project manages feature requests, please consult the feature request management document.