API Reference
Cmdlet
Resolve-Dns
Resolves DNS records (A, AAAA, MX, TXT, …) over UDP/TCP/DoT/DoH with optional multi-resolver strategies.
Examples
Example 1
Resolve-Dns -Name "example.com" -Type A
Simple (system default)
Example 2
Resolve-Dns -Name "example.com" -Type A -DnsProvider Cloudflare
Single provider (classic)
Example 3
Resolve-Dns -Name "example.com" -Type A -DnsProvider Cloudflare,Google -ResolverStrategy FirstSuccess
FirstSuccess across providers
Example 4
Resolve-Dns -Name "example.com" -Type A -DnsProvider Cloudflare,Google -ResolverStrategy FastestWins -FastestCacheMinutes 10 -ResponseCache
FastestWins with cache
Example 5
Resolve-Dns -Name @('a.com','b.com') -Type A -DnsProvider System,Cloudflare,Quad9 -ResolverStrategy RoundRobin -MaxParallelism 16 -PerEndpointMaxInFlight 4
RoundRobin with per-endpoint cap
Example 6
Resolve-Dns -Name 'example.com' -Type TXT -ResolverEndpoint '1.1.1.1:53','https://dns.google/dns-query' -ResolverStrategy FirstSuccess
Mixed endpoints (UDP + DoH)
Example 7
Resolve-Dns -Name 'example.com' -Type MX -DnsProvider Cloudflare,Google -ResponseCache -CacheExpirationSeconds 30 -MinCacheTtlSeconds 1 -MaxCacheTtlSeconds 3600
Enable TTL-based response cache with bounds
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Resolve-Dns -Name <string[]> [-Type <DnsRecordType[]>] [-CacheExpirationSeconds <int>] [-DnsProvider <System>] [-FastestCacheMinutes <int>] [-FullResponse] [-MaxCacheTtlSeconds <int>] [-MaxParallelism <int>] [-MinCacheTtlSeconds <int>] [-ParseTypedTxtRecords] [-PerEndpointMaxInFlight <int>] [-RequestDnsSec] [-ResolverStrategy <FirstSuccess|FastestWins|SequentialAll|RoundRobin>] [-RespectEndpointTimeout] [-ResponseCache] [-RetryCount <int>] [-RetryDelayMs <int>] [-TypedRecords] [-ValidateDnsSec] [<CommonParameters>]#Parameter set:
Set 1Parameters
- Name string[]
- The name of the DNS record to query for
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- CacheExpirationSeconds int
- Optional override for default cache expiration when TTL is unavailable (seconds).
- DnsProvider DnsEndpoint[]
- Predefined provider(s) (DnsEndpoint) for the query. When a single provider is specified, the classic single-resolver path is used. When multiple providers are specified, the multi-resolver path is used. If not specified, the default provider System (UDP) is used. Possible values: System, SystemTcp, Cloudflare, CloudflareSecurity, CloudflareFamily, CloudflareWireFormat, CloudflareWireFormatPost, CloudflareJsonPost, Google, GoogleWireFormat, GoogleWireFormatPost, GoogleJsonPost, Quad9, Quad9ECS, Quad9Unsecure, OpenDNS, OpenDNSFamily, CloudflareQuic, GoogleQuic, AdGuard, AdGuardFamily, AdGuardNonFiltering, NextDNS, DnsCryptCloudflare, DnsCryptQuad9, DnsCryptRelay, RootServer, CloudflareOdoh, Custom
- Possible values:
System,SystemTcp,Cloudflare,CloudflareSecurity,CloudflareFamily,CloudflareWireFormat,CloudflareWireFormatPost,CloudflareJsonPost,Google,GoogleWireFormat,GoogleWireFormatPost,GoogleJsonPost,Quad9,Quad9ECS,Quad9Unsecure,OpenDNS,OpenDNSFamily,CloudflareQuic,GoogleQuic,AdGuard,AdGuardFamily,AdGuardNonFiltering,NextDNS,DnsCryptCloudflare,DnsCryptQuad9,DnsCryptRelay,RootServer,CloudflareOdoh,Custom - FastestCacheMinutes int
- Cache duration in minutes for FastestWins strategy.
- FullResponse SwitchParameter
- Provides the full response of the query. If not specified, only the minimal response is provided (just the answer). If specified, the full response is provided (answer, authority, and additional sections).
- MaxCacheTtlSeconds int
- Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
- MaxParallelism int
- Limits concurrent queries across endpoints. Defaults to 4.
- MinCacheTtlSeconds int
- Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
- ParseTypedTxtRecords SwitchParameter
- Gets or sets a value indicating whether TXT records should be parsed into specialized types (DMARC, SPF, etc.) when TypedRecords is specified. When false, returns simple TXT records.
- PerEndpointMaxInFlight int
- Limits concurrent queries per endpoint when using the multi-resolver. Set to a positive value to cap in-flight queries per endpoint; 0 disables the cap.
- RequestDnsSec SwitchParameter
- Request DNSSEC data (sets the DO bit).
- ResolverStrategy MultiResolverStrategy
- Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
- Possible values:
FirstSuccess,FastestWins,SequentialAll,RoundRobin - RespectEndpointTimeout SwitchParameter
- Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
- ResponseCache SwitchParameter
- Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
- RetryCount int
- Number of retry attempts on transient errors.
- RetryDelayMs int
- Delay between retry attempts in milliseconds.
- TypedRecords SwitchParameter
- When set, attempts to parse answers into typed record objects.
- ValidateDnsSec SwitchParameter
- Validate DNSSEC signatures. Implies requesting DNSSEC data.
Resolve-Dns -Name <string[]> [-Type <DnsRecordType[]>] [-AllServers] [-Fallback] [-FullResponse] [-ParseTypedTxtRecords] [-RandomServer] [-RequestDnsSec] [-RetryCount <int>] [-RetryDelayMs <int>] [-Server <List`1>] [-TimeOut <int>] [-TypedRecords] [-ValidateDnsSec] [<CommonParameters>]#Parameter set:
Set 2Parameters
- Name string[]
- The name of the DNS record to query for
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- AllServers SwitchParameter
- If specified, all servers listed in Server are queried sequentially and the responses are aggregated in server order. When not specified, only the first server is queried for faster results.
- Fallback SwitchParameter
- If specified, the cmdlet sequentially queries each server until a successful response is received. This option stops on the first server that returns DnsResponseCode.NoError.
- FullResponse SwitchParameter
- Provides the full response of the query. If not specified, only the minimal response is provided (just the answer). If specified, the full response is provided (answer, authority, and additional sections).
- ParseTypedTxtRecords SwitchParameter
- Gets or sets a value indicating whether TXT records should be parsed into specialized types (DMARC, SPF, etc.) when TypedRecords is specified. When false, returns simple TXT records.
- RandomServer SwitchParameter
- If specified, the order of servers defined in Server is randomized before querying.
- RequestDnsSec SwitchParameter
- Request DNSSEC data (sets the DO bit).
- RetryCount int
- Number of retry attempts on transient errors.
- RetryDelayMs int
- Delay between retry attempts in milliseconds.
- Server List`1
- Server to use for the query. If not specified, the default provider System (UDP) is used. Once a server is specified, the query will be sent to that server.
- TimeOut int
- Specifies the timeout for the DNS query, in milliseconds. If the DNS server does not respond within this time, the query will fail. Default is 2000 ms (2 seconds) as defined by DefaultTimeout. Increase this value for slow networks or unreliable servers.
- TypedRecords SwitchParameter
- When set, attempts to parse answers into typed record objects.
- ValidateDnsSec SwitchParameter
- Validate DNSSEC signatures. Implies requesting DNSSEC data.
Resolve-Dns -Name <string[]> [-Type <DnsRecordType[]>] -ResolverEndpoint <string[]> [-CacheExpirationSeconds <int>] [-FastestCacheMinutes <int>] [-MaxCacheTtlSeconds <int>] [-MaxParallelism <int>] [-MinCacheTtlSeconds <int>] [-PerEndpointMaxInFlight <int>] [-ResolverStrategy <FirstSuccess|FastestWins|SequentialAll|RoundRobin>] [-RespectEndpointTimeout] [-ResponseCache] [<CommonParameters>]#Parameter set:
Set 3Parameters
- Name string[]
- The name of the DNS record to query for
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- ResolverEndpoint string[]
- One or more resolver endpoints in string format. Accepted: "1.1.1.1:53", "[2606:4700:4700::1111]:53", "dns.google:53", or DoH URLs like "https://dns.google/dns-query".
- CacheExpirationSeconds int
- Optional override for default cache expiration when TTL is unavailable (seconds).
- FastestCacheMinutes int
- Cache duration in minutes for FastestWins strategy.
- MaxCacheTtlSeconds int
- Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
- MaxParallelism int
- Limits concurrent queries across endpoints. Defaults to 4.
- MinCacheTtlSeconds int
- Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
- PerEndpointMaxInFlight int
- Limits concurrent queries per endpoint when using the multi-resolver. Set to a positive value to cap in-flight queries per endpoint; 0 disables the cap.
- ResolverStrategy MultiResolverStrategy
- Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
- Possible values:
FirstSuccess,FastestWins,SequentialAll,RoundRobin - RespectEndpointTimeout SwitchParameter
- Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
- ResponseCache SwitchParameter
- Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
Resolve-Dns -Name <string[]> [-Type <DnsRecordType[]>] -ResolverDnsProvider <System> [-CacheExpirationSeconds <int>] [-FastestCacheMinutes <int>] [-MaxCacheTtlSeconds <int>] [-MaxParallelism <int>] [-MinCacheTtlSeconds <int>] [-PerEndpointMaxInFlight <int>] [-ResolverStrategy <FirstSuccess|FastestWins|SequentialAll|RoundRobin>] [-RespectEndpointTimeout] [-ResponseCache] [<CommonParameters>]#Parameter set:
Set 4Parameters
- Name string[]
- The name of the DNS record to query for
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- ResolverDnsProvider DnsEndpoint[]
- One or more predefined providers (DnsEndpoint enum) to expand into endpoints for the multi-resolver. This enables strategy control (FirstSuccess/FastestWins/SequentialAll) and other multi-resolver options. Possible values: System, SystemTcp, Cloudflare, CloudflareSecurity, CloudflareFamily, CloudflareWireFormat, CloudflareWireFormatPost, CloudflareJsonPost, Google, GoogleWireFormat, GoogleWireFormatPost, GoogleJsonPost, Quad9, Quad9ECS, Quad9Unsecure, OpenDNS, OpenDNSFamily, CloudflareQuic, GoogleQuic, AdGuard, AdGuardFamily, AdGuardNonFiltering, NextDNS, DnsCryptCloudflare, DnsCryptQuad9, DnsCryptRelay, RootServer, CloudflareOdoh, Custom
- Possible values:
System,SystemTcp,Cloudflare,CloudflareSecurity,CloudflareFamily,CloudflareWireFormat,CloudflareWireFormatPost,CloudflareJsonPost,Google,GoogleWireFormat,GoogleWireFormatPost,GoogleJsonPost,Quad9,Quad9ECS,Quad9Unsecure,OpenDNS,OpenDNSFamily,CloudflareQuic,GoogleQuic,AdGuard,AdGuardFamily,AdGuardNonFiltering,NextDNS,DnsCryptCloudflare,DnsCryptQuad9,DnsCryptRelay,RootServer,CloudflareOdoh,Custom - CacheExpirationSeconds int
- Optional override for default cache expiration when TTL is unavailable (seconds).
- FastestCacheMinutes int
- Cache duration in minutes for FastestWins strategy.
- MaxCacheTtlSeconds int
- Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
- MaxParallelism int
- Limits concurrent queries across endpoints. Defaults to 4.
- MinCacheTtlSeconds int
- Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
- PerEndpointMaxInFlight int
- Limits concurrent queries per endpoint when using the multi-resolver. Set to a positive value to cap in-flight queries per endpoint; 0 disables the cap.
- ResolverStrategy MultiResolverStrategy
- Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
- Possible values:
FirstSuccess,FastestWins,SequentialAll,RoundRobin - RespectEndpointTimeout SwitchParameter
- Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
- ResponseCache SwitchParameter
- Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
Resolve-Dns -Pattern <string> [-Type <DnsRecordType[]>] [-CacheExpirationSeconds <int>] [-DnsProvider <System>] [-FastestCacheMinutes <int>] [-FullResponse] [-MaxCacheTtlSeconds <int>] [-MaxParallelism <int>] [-MinCacheTtlSeconds <int>] [-ParseTypedTxtRecords] [-PerEndpointMaxInFlight <int>] [-RequestDnsSec] [-ResolverStrategy <FirstSuccess|FastestWins|SequentialAll|RoundRobin>] [-RespectEndpointTimeout] [-ResponseCache] [-RetryCount <int>] [-RetryDelayMs <int>] [-TypedRecords] [-ValidateDnsSec] [<CommonParameters>]#Parameter set:
Set 5Parameters
- Pattern string
- Pattern to expand into multiple DNS queries.
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- CacheExpirationSeconds int
- Optional override for default cache expiration when TTL is unavailable (seconds).
- DnsProvider DnsEndpoint[]
- Predefined provider(s) (DnsEndpoint) for the query. When a single provider is specified, the classic single-resolver path is used. When multiple providers are specified, the multi-resolver path is used. If not specified, the default provider System (UDP) is used. Possible values: System, SystemTcp, Cloudflare, CloudflareSecurity, CloudflareFamily, CloudflareWireFormat, CloudflareWireFormatPost, CloudflareJsonPost, Google, GoogleWireFormat, GoogleWireFormatPost, GoogleJsonPost, Quad9, Quad9ECS, Quad9Unsecure, OpenDNS, OpenDNSFamily, CloudflareQuic, GoogleQuic, AdGuard, AdGuardFamily, AdGuardNonFiltering, NextDNS, DnsCryptCloudflare, DnsCryptQuad9, DnsCryptRelay, RootServer, CloudflareOdoh, Custom
- Possible values:
System,SystemTcp,Cloudflare,CloudflareSecurity,CloudflareFamily,CloudflareWireFormat,CloudflareWireFormatPost,CloudflareJsonPost,Google,GoogleWireFormat,GoogleWireFormatPost,GoogleJsonPost,Quad9,Quad9ECS,Quad9Unsecure,OpenDNS,OpenDNSFamily,CloudflareQuic,GoogleQuic,AdGuard,AdGuardFamily,AdGuardNonFiltering,NextDNS,DnsCryptCloudflare,DnsCryptQuad9,DnsCryptRelay,RootServer,CloudflareOdoh,Custom - FastestCacheMinutes int
- Cache duration in minutes for FastestWins strategy.
- FullResponse SwitchParameter
- Provides the full response of the query. If not specified, only the minimal response is provided (just the answer). If specified, the full response is provided (answer, authority, and additional sections).
- MaxCacheTtlSeconds int
- Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
- MaxParallelism int
- Limits concurrent queries across endpoints. Defaults to 4.
- MinCacheTtlSeconds int
- Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
- ParseTypedTxtRecords SwitchParameter
- Gets or sets a value indicating whether TXT records should be parsed into specialized types (DMARC, SPF, etc.) when TypedRecords is specified. When false, returns simple TXT records.
- PerEndpointMaxInFlight int
- Limits concurrent queries per endpoint when using the multi-resolver. Set to a positive value to cap in-flight queries per endpoint; 0 disables the cap.
- RequestDnsSec SwitchParameter
- Request DNSSEC data (sets the DO bit).
- ResolverStrategy MultiResolverStrategy
- Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
- Possible values:
FirstSuccess,FastestWins,SequentialAll,RoundRobin - RespectEndpointTimeout SwitchParameter
- Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
- ResponseCache SwitchParameter
- Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
- RetryCount int
- Number of retry attempts on transient errors.
- RetryDelayMs int
- Delay between retry attempts in milliseconds.
- TypedRecords SwitchParameter
- When set, attempts to parse answers into typed record objects.
- ValidateDnsSec SwitchParameter
- Validate DNSSEC signatures. Implies requesting DNSSEC data.
Resolve-Dns -Pattern <string> [-Type <DnsRecordType[]>] [-AllServers] [-Fallback] [-FullResponse] [-ParseTypedTxtRecords] [-RandomServer] [-RequestDnsSec] [-RetryCount <int>] [-RetryDelayMs <int>] [-Server <List`1>] [-TimeOut <int>] [-TypedRecords] [-ValidateDnsSec] [<CommonParameters>]#Parameter set:
Set 6Parameters
- Pattern string
- Pattern to expand into multiple DNS queries.
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- AllServers SwitchParameter
- If specified, all servers listed in Server are queried sequentially and the responses are aggregated in server order. When not specified, only the first server is queried for faster results.
- Fallback SwitchParameter
- If specified, the cmdlet sequentially queries each server until a successful response is received. This option stops on the first server that returns DnsResponseCode.NoError.
- FullResponse SwitchParameter
- Provides the full response of the query. If not specified, only the minimal response is provided (just the answer). If specified, the full response is provided (answer, authority, and additional sections).
- ParseTypedTxtRecords SwitchParameter
- Gets or sets a value indicating whether TXT records should be parsed into specialized types (DMARC, SPF, etc.) when TypedRecords is specified. When false, returns simple TXT records.
- RandomServer SwitchParameter
- If specified, the order of servers defined in Server is randomized before querying.
- RequestDnsSec SwitchParameter
- Request DNSSEC data (sets the DO bit).
- RetryCount int
- Number of retry attempts on transient errors.
- RetryDelayMs int
- Delay between retry attempts in milliseconds.
- Server List`1
- Server to use for the query. If not specified, the default provider System (UDP) is used. Once a server is specified, the query will be sent to that server.
- TimeOut int
- Specifies the timeout for the DNS query, in milliseconds. If the DNS server does not respond within this time, the query will fail. Default is 2000 ms (2 seconds) as defined by DefaultTimeout. Increase this value for slow networks or unreliable servers.
- TypedRecords SwitchParameter
- When set, attempts to parse answers into typed record objects.
- ValidateDnsSec SwitchParameter
- Validate DNSSEC signatures. Implies requesting DNSSEC data.
Resolve-Dns -Pattern <string> [-Type <DnsRecordType[]>] -ResolverEndpoint <string[]> [-CacheExpirationSeconds <int>] [-FastestCacheMinutes <int>] [-MaxCacheTtlSeconds <int>] [-MaxParallelism <int>] [-MinCacheTtlSeconds <int>] [-PerEndpointMaxInFlight <int>] [-ResolverStrategy <FirstSuccess|FastestWins|SequentialAll|RoundRobin>] [-RespectEndpointTimeout] [-ResponseCache] [<CommonParameters>]#Parameter set:
Set 7Parameters
- Pattern string
- Pattern to expand into multiple DNS queries.
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- ResolverEndpoint string[]
- One or more resolver endpoints in string format. Accepted: "1.1.1.1:53", "[2606:4700:4700::1111]:53", "dns.google:53", or DoH URLs like "https://dns.google/dns-query".
- CacheExpirationSeconds int
- Optional override for default cache expiration when TTL is unavailable (seconds).
- FastestCacheMinutes int
- Cache duration in minutes for FastestWins strategy.
- MaxCacheTtlSeconds int
- Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
- MaxParallelism int
- Limits concurrent queries across endpoints. Defaults to 4.
- MinCacheTtlSeconds int
- Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
- PerEndpointMaxInFlight int
- Limits concurrent queries per endpoint when using the multi-resolver. Set to a positive value to cap in-flight queries per endpoint; 0 disables the cap.
- ResolverStrategy MultiResolverStrategy
- Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
- Possible values:
FirstSuccess,FastestWins,SequentialAll,RoundRobin - RespectEndpointTimeout SwitchParameter
- Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
- ResponseCache SwitchParameter
- Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
Resolve-Dns -Pattern <string> [-Type <DnsRecordType[]>] -ResolverDnsProvider <System> [-CacheExpirationSeconds <int>] [-FastestCacheMinutes <int>] [-MaxCacheTtlSeconds <int>] [-MaxParallelism <int>] [-MinCacheTtlSeconds <int>] [-PerEndpointMaxInFlight <int>] [-ResolverStrategy <FirstSuccess|FastestWins|SequentialAll|RoundRobin>] [-RespectEndpointTimeout] [-ResponseCache] [<CommonParameters>]#Parameter set:
Set 8Parameters
- Pattern string
- Pattern to expand into multiple DNS queries.
- Type DnsRecordType[]
- The type of the record to query for. If not specified, A record is queried.
- ResolverDnsProvider DnsEndpoint[]
- One or more predefined providers (DnsEndpoint enum) to expand into endpoints for the multi-resolver. This enables strategy control (FirstSuccess/FastestWins/SequentialAll) and other multi-resolver options. Possible values: System, SystemTcp, Cloudflare, CloudflareSecurity, CloudflareFamily, CloudflareWireFormat, CloudflareWireFormatPost, CloudflareJsonPost, Google, GoogleWireFormat, GoogleWireFormatPost, GoogleJsonPost, Quad9, Quad9ECS, Quad9Unsecure, OpenDNS, OpenDNSFamily, CloudflareQuic, GoogleQuic, AdGuard, AdGuardFamily, AdGuardNonFiltering, NextDNS, DnsCryptCloudflare, DnsCryptQuad9, DnsCryptRelay, RootServer, CloudflareOdoh, Custom
- Possible values:
System,SystemTcp,Cloudflare,CloudflareSecurity,CloudflareFamily,CloudflareWireFormat,CloudflareWireFormatPost,CloudflareJsonPost,Google,GoogleWireFormat,GoogleWireFormatPost,GoogleJsonPost,Quad9,Quad9ECS,Quad9Unsecure,OpenDNS,OpenDNSFamily,CloudflareQuic,GoogleQuic,AdGuard,AdGuardFamily,AdGuardNonFiltering,NextDNS,DnsCryptCloudflare,DnsCryptQuad9,DnsCryptRelay,RootServer,CloudflareOdoh,Custom - CacheExpirationSeconds int
- Optional override for default cache expiration when TTL is unavailable (seconds).
- FastestCacheMinutes int
- Cache duration in minutes for FastestWins strategy.
- MaxCacheTtlSeconds int
- Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
- MaxParallelism int
- Limits concurrent queries across endpoints. Defaults to 4.
- MinCacheTtlSeconds int
- Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
- PerEndpointMaxInFlight int
- Limits concurrent queries per endpoint when using the multi-resolver. Set to a positive value to cap in-flight queries per endpoint; 0 disables the cap.
- ResolverStrategy MultiResolverStrategy
- Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
- Possible values:
FirstSuccess,FastestWins,SequentialAll,RoundRobin - RespectEndpointTimeout SwitchParameter
- Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
- ResponseCache SwitchParameter
- Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.