DnsFilterRewriteRule Class

Represents a $dnsrewrite directive that replaces the DNS response for a matched query.

public sealed class DnsFilterRewriteRule

Constructors

NameDescription
DnsFilterRewriteRule()

DnsFilterRewriteRule()

public DnsFilterRewriteRule()

No documentation is available.

Properties

NameDescription
RecordTypeGets the DNS record type for the rewritten response (e.g., A, AAAA, CNAME). May be null when only the response code is set.
ResponseCodeGets the response code to use. Defaults to DnsFilterRewriteResponseCode.NoError.
ValueGets the value for the rewritten response (e.g., an IP address or domain name). May be null when only the response code is set.

Gets the DNS record type for the rewritten response (e.g., A, AAAA, CNAME). May be null when only the response code is set.

public DnsFilterQueryType? RecordType { get; init; }

Property value

DnsFilterQueryType?

Gets the response code to use. Defaults to DnsFilterRewriteResponseCode.NoError.

public DnsFilterRewriteResponseCode ResponseCode { get; init; }

Gets the value for the rewritten response (e.g., an IP address or domain name). May be null when only the response code is set.

public string? Value { get; init; }

Property value

string?