dnsstamps2

DNS Stamps package

Pure Nim score 15/100 · tests present · no docs generated

Summary

Latest Version 0.1.0
License MIT
CI Status Failing
Downloads 0
Last Indexed 2026-07-21 05:25

Authors

  • rockcavera

Installation

nimble install dnsstamps2
choosenim install dnsstamps2
git clone https://github.com/rockcavera/nim-dnsstamps2

OS Compatibility

Platform Linux macOS Windows FreeBSD OpenBSD NetBSD Android iOS WASM Embedded
dnsstamps2 - - - - - -

Dependencies

Package Version Optional
nim >= 1.2.0", "stew No

Source

Repository https://github.com/rockcavera/nim-dnsstamps2
Homepage https://github.com/rockcavera/nim-dnsstamps2
Registry Source nimble_official

README

DNS Stamps package for Nim.

DNS Stamps is a specification that aims to encode all the data needed to access a DNS server in a single string (URI).

The implementation is based on the specifications contained here.

Install

nimble install https://github.com/rockcavera/nim-dnsstamps2.git

Basic Use

Creating a StampObj for Google's public DNS resolver and turning it into a string:

import dnsstamps2

let stamp = initPlainDNSStamp("8.8.8.8", Port(53), {StampProps.DNSSEC})

echo toStamp(stamp)

Parsing a DNS Stamp string to get all the specifications of a DNS resolver inside a StampObj:

import dnsstamps2

const strStamp = "sdns://AAEAAAAAAAAABzguOC44Ljg"

let stamp = parseStamp(strStamp)

echo stamp

Documentation

https://rockcavera.github.io/nim-dnsstamps2/dnsstamps2.html