Skip to content

Microsoft.Extensions.ServiceDiscovery.Dns doesn't respect QuerySuffix generated from k8s namespace #7175

Closed

Description

@vermilion

Description

There is a bug in DnsSrvServiceEndpointProviderFactory.cs after last refactoring.

Generated variable _querySuffix is not passed further to DefaultServiceDomainNameCallback but options suffix is used instead

Reproduction Steps

Using Dns srv service within dynamic namespaces

        services.AddServiceDiscoveryCore()
            .AddDnsSrvServiceEndpointProvider();

Expected behavior

Resolve should work as before

Actual behavior

Image

Regression?

Image

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. added
    bugThis issue describes a behavior which is not expected - a bug.
    on Dec 23, 2025
  2. added a commit that references this issue on Aug 11, 2026
    1cfcfb4
  3. locked and limited conversation to collaborators on Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-telemetrybugThis issue describes a behavior which is not expected - a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions