Domain Detective

DnsClientX

Modern DNS client for .NET and PowerShell, documented inside DomainDetective.dev with generated API reference and direct DNS tooling.

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 pointBest forStart here
DnsClientX for .NETApp code, services, diagnostics, CLI tools, reusable DNS workflowsC# guide
DnsClientX for PowerShellScripts, GitHub Actions, CI checks, incident response, operations automationPowerShell guide
Raw DNS QueryExploring records interactively before writing codeOpen 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

SurfaceURL
DnsClientX C# APIOpen .NET API reference
DnsClientX PowerShell cmdletsOpen PowerShell API reference

Next Steps