DnsClientX is the DNS engine behind large parts of DomainDetective. If you want raw DNS resolution, provider control, DNSSEC-aware queries, EDNS options, or direct DNS automation without the higher-level domain analysis layer, this is the product surface to start with.
Choose Your Entry Point
| Entry point | Best for | Start here |
|---|
| DnsClientX for .NET | App code, services, diagnostics, CLI tools, reusable DNS workflows | C# guide |
| DnsClientX for PowerShell | Scripts, GitHub Actions, CI checks, incident response, operations automation | PowerShell guide |
| Raw DNS Query | Exploring records interactively before writing code | Open tool |
Install
dotnet add package DnsClientX
Install-Module DnsClientX -Scope CurrentUser
What It Gives You
- Direct queries across UDP, TCP, DNS over HTTPS, DNS over TLS, DNS over QUIC, and other resolver transports.
- Typed record parsing when raw answer strings are not enough.
- Multi-resolver strategies when you want to compare providers or race for the first successful answer.
- EDNS options including client subnet scenarios.
- DNSSEC-aware request and validation flows.
Typical C# Usage
using DnsClientX;
using var client = new ClientX(DnsEndpoint.Cloudflare);
DnsResponse response = await client.Resolve("evotec.pl", DnsRecordType.MX, typedRecords: true);
foreach (var answer in response.Answers) {
Console.WriteLine($"{answer.Type}: {answer.Data}");
}
Typical PowerShell Usage
Resolve-Dns -Name 'evotec.pl' -Type A -DnsProvider Cloudflare | Format-Table
Resolve-Dns -Name 'evotec.pl' -Type MX -DnsProvider Cloudflare,Google -ResolverStrategy FirstSuccess | Format-Table
Generated API Reference
Next Steps