grpc / grpc/grpc-dotnet

How to set grpc.dns_enable_srv_queries=1?

Open
#1,775 1 comment 0 reactions 0 assignees View on GitHub
question
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.