Allow GRPCLB_NAME_PREFIX to be configured per service in DnsNameResolver
Open
- Dominant language
- Java
- Stars
- 12.1k
- Forks
- 4k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 37
Description
### What version of gRPC are you using?
1.18.0
### Feature Request
Some third party servers that I try to connect to don't expose their grpc service addresses with the `grpclb` prefix, so it would be nice if I could configure the service name lookup by providing a custom service prefix.
### Example
serverA: `dns:/foobar.example.com` -> `_grpclb._tcp.foobar.example.com`
serverB: `dns:/barfoo.example.com?srvName=grpc` -> `_grpc._tcp.barfoo.example.com`
serverC: `dns:/lorep.example.com?srvName=ipsum` -> `_ipsum._tcp.lorep.example.com`
Contributor guide
Assessment
This issue has not been assessed yet.