DnsCore 0.3.12

dotnet add package DnsCore --version 0.3.12
                    
NuGet\Install-Package DnsCore -Version 0.3.12
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DnsCore" Version="0.3.12" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="DnsCore" Version="0.3.12" />
                    
Directory.Packages.props
<PackageReference Include="DnsCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add DnsCore --version 0.3.12
                    
#r "nuget: DnsCore, 0.3.12"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package DnsCore@0.3.12
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DnsCore&version=0.3.12
                    
Install as a Cake Addin
#tool nuget:?package=DnsCore&version=0.3.12
                    
Install as a Cake Tool

DNS Core

A lightweight DNS client and server for .NET 8, 9, and 10.

DnsCore release DnsCore download count

Features

  • DNS Client — resolve DNS queries with automatic UDP→TCP fallback, retry with exponential backoff, and configurable timeouts
  • DNS Server — handle incoming DNS requests via IDnsServerHandler interface or a simple delegate
  • UDP & TCP — full support for both transport protocols
  • Hosting integrationAddDns() extensions for Microsoft.Extensions.Hosting
  • Typed records — A, AAAA, NS, MD, MF, CNAME, DNAME, SOA, MB, MG, MR, PTR, MINFO, MX, TXT, RP, SRV, and PX (IN class)
  • Targets — net8.0, net9.0, net10.0
  • Platforms — Linux x64, Linux arm64, Windows x64, Windows arm64, macOS arm64

Getting started

dotnet add package DnsCore

See the client example for querying DNS servers and the server example for handling requests with AddDns().

Limitations

  • Names: ASCII only, with dots separating labels. Spaces, backslashes, and escape sequences are unsupported; convert internationalized domains to ASCII (IDNA) before parsing. DNS-SD instance names with spaces or Unicode and SOA/RP mailbox labels containing dots are unsupported. Use ParseHostName or IsHostName when stricter hostname validation is needed.
  • Raw records: Unknown types use DnsRawRecord, except unsupported formats that may contain DNS compression pointers (AFSDB, RT, SIG, KEY, NXT, NAPTR), which are rejected. Raw RP and IN-class PX are also rejected; non-IN PX is preserved as opaque data.
  • Name compression: Encoding follows each record field’s compression rules. Decoding accepts historical compressed names where applicable, while retaining malformed-name and compression-pointer validation.
  • RP: Mailbox and TXT-record name in all DNS classes; root (DnsName.Empty) means no mailbox or no associated TXT data. Wire encoding and decoding only, without automatic TXT lookup. Embedded names are emitted uncompressed.
  • PX: RFC 2163 IN-class wire format only; no RFC 822/X.400 conversion or mail-routing behavior. Embedded names are emitted uncompressed.
  • DNAME: Encoding and decoding only; no automatic subtree substitution, synthesized CNAMEs, or resolver following.
  • Wildcards: Asterisks are literal; wildcard matching and automatic wildcard answers are not provided.
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.12 90 9/9/2026
0.3.11 95 9/8/2026
0.3.10 97 9/8/2026
0.3.9 88 9/7/2026
0.3.8 101 9/7/2026
0.3.7 107 9/6/2026
0.3.6 110 9/5/2026
0.3.5 102 9/5/2026
0.3.4 104 9/4/2026
0.3.3 98 9/3/2026
0.3.2 103 8/31/2026
0.3.1 100 8/31/2026
0.3.0 104 8/31/2026
0.2.10 98 8/28/2026
0.2.9 154 7/8/2026
0.2.8 199 2/24/2026
0.2.7 159 2/24/2026
0.2.6 154 2/24/2026
0.2.5 157 2/24/2026
0.2.4 157 2/24/2026
Loading failed