Domain Detective

API Reference

Cmdlet

Resolve-Dns

Namespace DnsClientX.PowerShell

Resolves DNS records (A, AAAA, MX, TXT, …) over UDP/TCP/DoT/DoH with optional multi-resolver strategies.

Examples

Authored help example

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 1

Parameters

Name string[] requiredposition: 0pipeline: false
The name of the DNS record to query for
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
CacheExpirationSeconds int optionalposition: namedpipeline: false
Optional override for default cache expiration when TTL is unavailable (seconds).
DnsProvider DnsEndpoint[] optionalposition: namedpipeline: falsevalues: 29
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 optionalposition: namedpipeline: false
Cache duration in minutes for FastestWins strategy.
FullResponse SwitchParameter optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
MaxParallelism int optionalposition: namedpipeline: false
Limits concurrent queries across endpoints. Defaults to 4.
MinCacheTtlSeconds int optionalposition: namedpipeline: false
Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
ParseTypedTxtRecords SwitchParameter optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Request DNSSEC data (sets the DO bit).
ResolverStrategy MultiResolverStrategy optionalposition: namedpipeline: falsevalues: 4
Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
RespectEndpointTimeout SwitchParameter optionalposition: namedpipeline: false
Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
ResponseCache SwitchParameter optionalposition: namedpipeline: false
Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
RetryCount int optionalposition: namedpipeline: false
Number of retry attempts on transient errors.
RetryDelayMs int optionalposition: namedpipeline: false
Delay between retry attempts in milliseconds.
TypedRecords SwitchParameter optionalposition: namedpipeline: false
When set, attempts to parse answers into typed record objects.
ValidateDnsSec SwitchParameter optionalposition: namedpipeline: false
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 2

Parameters

Name string[] requiredposition: 0pipeline: false
The name of the DNS record to query for
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
AllServers SwitchParameter optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
If specified, the order of servers defined in Server is randomized before querying.
RequestDnsSec SwitchParameter optionalposition: namedpipeline: false
Request DNSSEC data (sets the DO bit).
RetryCount int optionalposition: namedpipeline: false
Number of retry attempts on transient errors.
RetryDelayMs int optionalposition: namedpipeline: false
Delay between retry attempts in milliseconds.
Server List`1 optionalposition: namedpipeline: falsealiases: ServerName
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
When set, attempts to parse answers into typed record objects.
ValidateDnsSec SwitchParameter optionalposition: namedpipeline: false
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 3

Parameters

Name string[] requiredposition: 0pipeline: false
The name of the DNS record to query for
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
ResolverEndpoint string[] requiredposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Optional override for default cache expiration when TTL is unavailable (seconds).
FastestCacheMinutes int optionalposition: namedpipeline: false
Cache duration in minutes for FastestWins strategy.
MaxCacheTtlSeconds int optionalposition: namedpipeline: false
Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
MaxParallelism int optionalposition: namedpipeline: false
Limits concurrent queries across endpoints. Defaults to 4.
MinCacheTtlSeconds int optionalposition: namedpipeline: false
Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
PerEndpointMaxInFlight int optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: falsevalues: 4
Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
RespectEndpointTimeout SwitchParameter optionalposition: namedpipeline: false
Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
ResponseCache SwitchParameter optionalposition: namedpipeline: false
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 4

Parameters

Name string[] requiredposition: 0pipeline: false
The name of the DNS record to query for
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
ResolverDnsProvider DnsEndpoint[] requiredposition: namedpipeline: falsealiases: DnsProvidersvalues: 29
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 optionalposition: namedpipeline: false
Optional override for default cache expiration when TTL is unavailable (seconds).
FastestCacheMinutes int optionalposition: namedpipeline: false
Cache duration in minutes for FastestWins strategy.
MaxCacheTtlSeconds int optionalposition: namedpipeline: false
Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
MaxParallelism int optionalposition: namedpipeline: false
Limits concurrent queries across endpoints. Defaults to 4.
MinCacheTtlSeconds int optionalposition: namedpipeline: false
Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
PerEndpointMaxInFlight int optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: falsevalues: 4
Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
RespectEndpointTimeout SwitchParameter optionalposition: namedpipeline: false
Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
ResponseCache SwitchParameter optionalposition: namedpipeline: false
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 5

Parameters

Pattern string requiredposition: 0pipeline: false
Pattern to expand into multiple DNS queries.
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
CacheExpirationSeconds int optionalposition: namedpipeline: false
Optional override for default cache expiration when TTL is unavailable (seconds).
DnsProvider DnsEndpoint[] optionalposition: namedpipeline: falsevalues: 29
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 optionalposition: namedpipeline: false
Cache duration in minutes for FastestWins strategy.
FullResponse SwitchParameter optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
MaxParallelism int optionalposition: namedpipeline: false
Limits concurrent queries across endpoints. Defaults to 4.
MinCacheTtlSeconds int optionalposition: namedpipeline: false
Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
ParseTypedTxtRecords SwitchParameter optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Request DNSSEC data (sets the DO bit).
ResolverStrategy MultiResolverStrategy optionalposition: namedpipeline: falsevalues: 4
Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
RespectEndpointTimeout SwitchParameter optionalposition: namedpipeline: false
Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
ResponseCache SwitchParameter optionalposition: namedpipeline: false
Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
RetryCount int optionalposition: namedpipeline: false
Number of retry attempts on transient errors.
RetryDelayMs int optionalposition: namedpipeline: false
Delay between retry attempts in milliseconds.
TypedRecords SwitchParameter optionalposition: namedpipeline: false
When set, attempts to parse answers into typed record objects.
ValidateDnsSec SwitchParameter optionalposition: namedpipeline: false
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 6

Parameters

Pattern string requiredposition: 0pipeline: false
Pattern to expand into multiple DNS queries.
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
AllServers SwitchParameter optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
If specified, the order of servers defined in Server is randomized before querying.
RequestDnsSec SwitchParameter optionalposition: namedpipeline: false
Request DNSSEC data (sets the DO bit).
RetryCount int optionalposition: namedpipeline: false
Number of retry attempts on transient errors.
RetryDelayMs int optionalposition: namedpipeline: false
Delay between retry attempts in milliseconds.
Server List`1 optionalposition: namedpipeline: falsealiases: ServerName
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 optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: false
When set, attempts to parse answers into typed record objects.
ValidateDnsSec SwitchParameter optionalposition: namedpipeline: false
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 7

Parameters

Pattern string requiredposition: 0pipeline: false
Pattern to expand into multiple DNS queries.
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
ResolverEndpoint string[] requiredposition: namedpipeline: false
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 optionalposition: namedpipeline: false
Optional override for default cache expiration when TTL is unavailable (seconds).
FastestCacheMinutes int optionalposition: namedpipeline: false
Cache duration in minutes for FastestWins strategy.
MaxCacheTtlSeconds int optionalposition: namedpipeline: false
Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
MaxParallelism int optionalposition: namedpipeline: false
Limits concurrent queries across endpoints. Defaults to 4.
MinCacheTtlSeconds int optionalposition: namedpipeline: false
Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
PerEndpointMaxInFlight int optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: falsevalues: 4
Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
RespectEndpointTimeout SwitchParameter optionalposition: namedpipeline: false
Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
ResponseCache SwitchParameter optionalposition: namedpipeline: false
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 8

Parameters

Pattern string requiredposition: 0pipeline: false
Pattern to expand into multiple DNS queries.
Type DnsRecordType[] optionalposition: 1pipeline: false
The type of the record to query for. If not specified, A record is queried.
ResolverDnsProvider DnsEndpoint[] requiredposition: namedpipeline: falsealiases: DnsProvidersvalues: 29
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 optionalposition: namedpipeline: false
Optional override for default cache expiration when TTL is unavailable (seconds).
FastestCacheMinutes int optionalposition: namedpipeline: false
Cache duration in minutes for FastestWins strategy.
MaxCacheTtlSeconds int optionalposition: namedpipeline: false
Maximal TTL allowed for cached entries (seconds). 0 leaves library default.
MaxParallelism int optionalposition: namedpipeline: false
Limits concurrent queries across endpoints. Defaults to 4.
MinCacheTtlSeconds int optionalposition: namedpipeline: false
Minimal TTL allowed for cached entries (seconds). 0 leaves library default.
PerEndpointMaxInFlight int optionalposition: namedpipeline: false
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 optionalposition: namedpipeline: falsevalues: 4
Multi-resolver strategy to use when multiple endpoints are provided. Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
Possible values: FirstSuccess, FastestWins, SequentialAll, RoundRobin
RespectEndpointTimeout SwitchParameter optionalposition: namedpipeline: false
Respect endpoint-level timeouts if present. When not set, the cmdlet's -TimeOut value is used.
ResponseCache SwitchParameter optionalposition: namedpipeline: false
Enables response caching based on TTLs for repeated queries of the same (name,type). Disabled by default.
{{ include "footer" }}