DnsStamps.Net 1.2.0

dotnet add package DnsStamps.Net --version 1.2.0                
NuGet\Install-Package DnsStamps.Net -Version 1.2.0                
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="DnsStamps.Net" Version="1.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DnsStamps.Net --version 1.2.0                
#r "nuget: DnsStamps.Net, 1.2.0"                
#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.
// Install DnsStamps.Net as a Cake Addin
#addin nuget:?package=DnsStamps.Net&version=1.2.0

// Install DnsStamps.Net as a Cake Tool
#tool nuget:?package=DnsStamps.Net&version=1.2.0                

DnsStamps.Net

Nuget

using DnsStamps;

var dnscrypt = new DnsCryptStamp(
    "[2600:1406:3a00:21::173e:2e66]:443",
    "0338ad6e03b98fd5bf2828e2abfbf2c2fa74cf408834f9b6a343fbe2b4c0705a",
    "example.com"
);
Console.WriteLine(dnscrypt.ToString());

Console.WriteLine(new DnsStamps.DoHStamp(address: "8.8.8.8", hash: "", hostName: "dns.google", path: "/dns-query")
    {Properties = {DnsSec = true, NoFilter = false, NoLog = false}}.ToString());

if (StampParser.Parse("sdns://AgMAAAAAAAAADDk0LjE0MC4xNS4xNSCaOjT3J965vKUQA9nOnDn48n3ZxSQpAcK6saROY1oCGQw5NC4xNDAuMTUuMTUKL2Rucy1xdWVyeQ")
    is DoHStamp dohStamp)
{
    Console.WriteLine(dohStamp.Address);
    Console.WriteLine(dohStamp.Path);
}

Refer to the great implementation of martinheidegger/node-dnsstamp

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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.

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
1.2.0 192 3/7/2025
1.1.0 176 3/7/2025
1.0.0 211 3/5/2025