API Reference
Class
DnsMultiResolver
Multi-endpoint resolver supporting FirstSuccess, FastestWins, and SequentialAll strategies.
Inheritance
- Object
- DnsMultiResolver
Constructors
public DnsMultiResolver(IEnumerable<DnsResolverEndpoint> endpoints, MultiResolverOptions options = null) #Creates a multi-endpoint resolver with provided endpoints and options.
Parameters
- endpoints System.Collections.Generic.IEnumerable{DnsClientX.DnsResolverEndpoint}
- One or more endpoints to target.
- options DnsClientX.MultiResolverOptions = null
- Behavioral options controlling strategy, parallelism, timeouts, and caching.
Methods
public static Void ClearFastestCache() #Returns:
VoidClears the in-memory FastestWins cache for all endpoint sets.
public static Void ClearFastestCacheFor(IEnumerable<DnsResolverEndpoint> endpoints) #Returns:
VoidClears the FastestWins cache for the provided set of endpoints only.
Parameters
- endpoints System.Collections.Generic.IEnumerable{DnsClientX.DnsResolverEndpoint}
public virtual Void Dispose() #Returns:
VoidDisposes internal per-endpoint SemaphoreSlim limiters and clears references.
public virtual Task<DnsResponse> QueryAsync(String name, DnsRecordType type, CancellationToken ct = null) #Returns:
Task<DnsResponse>Queries a single name for the specified record type according to the configured strategy.
Parameters
- name System.String
- type DnsClientX.DnsRecordType
- ct System.Threading.CancellationToken = null
public virtual async Task<DnsResponse[]> QueryBatchAsync(String[] names, DnsRecordType type, CancellationToken ct = null) #Returns:
Task<DnsResponse[]>Queries multiple names of the same record type, preserving input order, and isolating failures per-element.
Parameters
- names System.String[]
- type DnsClientX.DnsRecordType
- ct System.Threading.CancellationToken = null