Skip to content
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

Use options pattern to allow overriding of LookupSRV and LookupHost. #2634

Closed
wants to merge 2 commits into from

Conversation

tomwilkie
Copy link
Contributor

Need to override LookupSRV as go1.11 got strict about SRV lookups on old k8s cluster: golang/go#27546.

Signed-off-by: Tom Wilkie tom.wilkie@gmail.com

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>
@lyuxuan
Copy link
Contributor

lyuxuan commented Feb 28, 2019

Hi @tomwilkie, apology for my late reply. I took a look at the code, and found that you are proposing change to our DNS resolver for the deprecated resolver API v1. We keep this implementation of DNS resolve for backward compatibility.

I would suggest having your own separate DNS resolver implementation (essentially DNS resolver v1 with your change here), instead of checking in the change here.

FYI, DNS resolver which conforms to resolver API v2 is here: https://github.com/grpc/grpc-go/tree/master/resolver/dns.

Let me know if you have further questions. Thanks!

@dfawley dfawley closed this Mar 7, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Sep 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants