Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Unable to specify DNS authority #480

Open
toothbrush opened this issue Jun 21, 2021 · 0 comments
Open

Unable to specify DNS authority #480

toothbrush opened this issue Jun 21, 2021 · 0 comments

Comments

@toothbrush
Copy link

toothbrush commented Jun 21, 2021

Good day!

I was attempting to specify which DNS server to use to resolve the hostname of my kiam-server, as follows:

/kiam agent \
    --server-address=dns://172.16.128.10/kiam-server.auth-system.svc.cluster.local:7443 [...more flags]

I expected this to be possible based on gRPC documentation here: https://github.com/grpc/grpc/blob/master/doc/naming.md

However, if i understand correctly, as a result of this line of code, forcibly prepending dns:/// to my server address:

conn, err := grpc.DialContext(ctx, "dns:///"+b.address, dialOpts...)

..that capability is clobbered and as a user, i am unable to specify such things as a custom DNS authority, or even multiple comma-delimited IP addresses. Could you please comment as to whether that's intentional, or whether i could submit a PR simply removing the dns:/// prepended? Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant