Meziantou.Framework.DnsFilter namespace

Classes

NameDescription
DnsFilterEngineA DNS filter matching engine that evaluates DNS queries against a set of filter rules. Supports efficient exact domain matching, subdomain matching, wildcard, and regex patterns.
DnsFilterListReaderReads DNS filter lists in various formats and produces DnsFilterRule instances. Supports hosts files, domains-only lists, and AdGuard/Adblock DNS filtering syntax.
DnsFilterParseDiagnosticDescribes a filter list line that did not produce a rule.
DnsFilterParseResultThe outcome of parsing a filter list: the rules that were understood, and a diagnostic for every line that was not.
DnsFilterResultRepresents the outcome of evaluating a DNS query against the filter engine.
DnsFilterRewriteRuleRepresents a $dnsrewrite directive that replaces the DNS response for a matched query.
DnsFilterRuleRepresents a single parsed DNS filter rule.
DnsFilterRuleSetAn aggregated collection of DNS filter rules from one or more parsed sources.

Structs

NameDescription
DnsClientInfoProvides information about the DNS client making the query. Used for evaluating $client and $ctag modifiers. All properties are optional; when not set, rules with corresponding modifiers will not match.

Enums

NameDescription
DnsFilterActionSpecifies the action determined by DNS filter evaluation.
DnsFilterListFormatSpecifies the format of a DNS filter list.
DnsFilterParseErrorIdentifies why a filter list line was not turned into a rule.
DnsFilterQueryTypeSpecifies the type of DNS query for use with the $dnstype modifier. Values correspond to IANA DNS Parameters registry types commonly used in filter rules.
DnsFilterRewriteResponseCodeSpecifies the response code for a $dnsrewrite rule.