DnsEndpointRouteBuilderExtensions Class
Extension methods for mapping DNS endpoints on an IEndpointRouteBuilder.
public static class DnsEndpointRouteBuilderExtensionsMethods
| Name | Description |
|---|---|
| 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.csRegisters 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.csMaps a DNS over HTTPS endpoint at the specified path pattern.
public static IEndpointConventionBuilder MapDnsOverHttps(this IEndpointRouteBuilder endpoints, string pattern = "/dns-query")