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 DnsClientInfo

Properties

NameDescription
AddressGets the IP address of the client. Used for $client modifier matching by IP or CIDR.
NameGets 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.
TagsGets the client tags. Used for $ctag modifier matching. Tags are arbitrary strings (e.g., device_phone, os_windows, user_child).

Gets the IP address of the client. Used for $client modifier matching by IP or CIDR.

public IPAddress? Address { get; init; }

Property value

IPAddress?

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.

public string? Name { get; init; }

Property value

string?

Gets 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; }