Class UseDnsOverHttpsAction
Use DoH (DNS over HTTPS) to resolve domain names instead of the default DNS provided by the OS.
[ActionMetadata("Use DoH (DNS over HTTPS) to resolve domain names instead of the default DNS provided by the OS")]
public class UseDnsOverHttpsAction : Action
- Inheritance
-
UseDnsOverHttpsAction
- Inherited Members
Constructors
UseDnsOverHttpsAction(string?)
public UseDnsOverHttpsAction(string? nameOrUrl)
Parameters
nameOrUrlstring
Properties
ActionScope
public override FilterScope ActionScope { get; }
Property Value
DefaultDescription
public override string DefaultDescription { get; }
Property Value
NameOrUrl
Name or full Url of the DNS server to use. Built-in values are: Google, Cloudflare.
public string? NameOrUrl { get; set; }
Property Value
NoCapture
If false, the DNS over HTTPS requests will pass through the proxy.
public bool NoCapture { get; set; }
Property Value
Methods
GetExamples()
public override IEnumerable<ActionExample> GetExamples()
Returns
Init(StartupContext)
Called once by the engine to initialize this directive
public override void Init(StartupContext startupContext)
Parameters
startupContextStartupContext
InternalAlter(ExchangeContext, Exchange?, Connection?, FilterScope, BreakPointManager)
public override ValueTask InternalAlter(ExchangeContext context, Exchange? exchange, Connection? connection, FilterScope scope, BreakPointManager breakPointManager)
Parameters
contextExchangeContextexchangeExchangeconnectionConnectionscopeFilterScopebreakPointManagerBreakPointManager