DNS Configuration
DNS Endpoint
Set the DNS resolver endpoint:
var healthCheck = new DomainHealthCheck();
healthCheck.DnsEndpoint = DnsEndpoint.CloudflareWireFormat; // DNS-over-HTTPS
Available endpoints:
DnsEndpoint.System- System default resolverDnsEndpoint.SystemTcp- System resolver via TCPDnsEndpoint.CloudflareWireFormat- Cloudflare DoH (wire format)DnsEndpoint.Cloudflare- Cloudflare DoH (JSON)DnsEndpoint.Google- Google Public DNSDnsEndpoint.Quad9- Quad9 DNS
Multiple Resolvers
healthCheck.DnsEndpoints.Add(DnsEndpoint.Google);
healthCheck.DnsEndpoints.Add(DnsEndpoint.Quad9);
healthCheck.MultiResolverStrategy = MultiResolverStrategy.All;
HTTP Client
healthCheck.HttpClientFactory = myHttpClientFactory;
DNSBL Lists
DomainDetective includes a built-in DNSBL list. To use a custom list:
healthCheck.LoadDNSBL("path/to/custom-dnsbl.json");
DNS Propagation
healthCheck.DnsPropagationMaxServers = 60;
healthCheck.DnsPropagationMaxParallelism = 20;
healthCheck.DnsPropagationIncludeGeo = true;