Overview of DnsClient.NET features
devDnsClient.NET is a high-performance .NET library for DNS lookups. Key capabilities include:
- Protocol Support: Supports both UDP and TCP. TCP can be configured as a fallback if UDP results are truncated (enabled by default).
- EDNS Support: Configurable EDNS to adjust UDP buffer sizes and request security-relevant records.
- Caching:
- Query result caching based on TTL.
- Minimum TTL setting to enforce a minimum cache duration.
- Maximum TTL to cap cache duration.
- Ability to disable caching entirely.
- Nameserver Discovery: Automatically discovers nameservers from local system configuration, including network interfaces and Windows NRPT policies.
- Resilience: Supports multiple DNS endpoints (random or sequential order), configurable retries, and configurable error handling (e.g., deciding whether to throw on
NotExistentDomain). - Observability: Optional audit trails for responses/exceptions and optional Trace/Logging support.