DnsClientInfo Struct
Provides 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.
public readonly struct DnsClientInfoProperties
| Name | Description |
|---|---|
| Address | Gets the IP address of the client. Used for $client modifier matching by IP or CIDR. |
| Name | Gets the client name. Used for $client modifier matching by name. The caller is responsible for resolving client IP to name before calling the filter engine. |
| Tags | Gets the client tags. Used for $ctag modifier matching. Tags are arbitrary strings (e.g., device_phone, os_windows, user_child). |
Address
DnsClientInfo.csGets the IP address of the client. Used for $client modifier matching by IP or CIDR.
public IPAddress? Address { get; init; }Property value
Name
DnsClientInfo.csTags
DnsClientInfo.csGets the client tags. Used for $ctag modifier matching. Tags are arbitrary strings (e.g., device_phone, os_windows, user_child).
public IReadOnlyList<string>? Tags { get; init; }