Skip to content

How to set grpc.dns_enable_srv_queries=1? #1775

@niuzheng168

Description

@niuzheng168

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)
  });

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions