DnsEndpointRouteBuilderExtensions Class

Extension methods for mapping DNS endpoints on an IEndpointRouteBuilder.

public static class DnsEndpointRouteBuilderExtensions

Methods

NameDescription
MapDnsHandler(IEndpointRouteBuilder, DnsRequestDelegate)Registers the DNS request handler delegate. This must be called before the application starts.
MapDnsOverHttps(IEndpointRouteBuilder, string)Maps a DNS over HTTPS endpoint at the specified path pattern.

MapDnsHandler(IEndpointRouteBuilder, DnsRequestDelegate)

DnsEndpointRouteBuilderExtensions.cs

Registers the DNS request handler delegate. This must be called before the application starts.

public static IEndpointRouteBuilder MapDnsHandler(this IEndpointRouteBuilder endpoints, DnsRequestDelegate handler)

MapDnsOverHttps(IEndpointRouteBuilder, string)

DnsEndpointRouteBuilderExtensions.cs

Maps a DNS over HTTPS endpoint at the specified path pattern.

public static IEndpointConventionBuilder MapDnsOverHttps(this IEndpointRouteBuilder endpoints, string pattern = "/dns-query")