How to set grpc.dns_enable_srv_queries=1?
- Dominant language
- C#
- Stars
- 4.5k
- Forks
- 836
- Avg merge
- 6d 3h
- Merged PRs (30d)
- 7
Description
We are migrating our project to grpc.net, what's the right way to set **grpc.dns_enable_srv_queries=1?**
```
Channel channel = new Channel("dns://127.0.0.1:8010/test.my-company.com", ChannelCredentials.Insecure, new[]
{
new ChannelOption("grpc.lb_policy_name", "grpclb"),
new ChannelOption("grpc.service_config", "{\"serviceConfig\":{\"load_balancing_config\":{ \"grpclb\": {} },\"waitForReady\":true}}"),
new ChannelOption("grpc.dns_enable_srv_queries", 1)
});
```
Contributor guide
Research direction
No project file or test is mentioned. Start by reading the grpc.net Channel and ChannelOption documentation for DNS resolver and service configuration options, then verify whether grpc.dns_enable_srv_queries is supported; done means the supported configuration method is documented or clearly answered.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- api
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100