No description
Find a file
2023-04-08 00:03:10 -03:00
src update README.md 2023-04-08 00:03:10 -03:00
tests added description; tdnsstamps2 init procs fix; improvement on == 2023-04-07 17:54:02 -03:00
dnsstamps2.nimble Required Nim 1.2.0 2023-03-07 15:27:25 -03:00
LICENSE Initial commit 2023-03-01 11:49:08 -03:00
README.md update README.md 2023-04-08 00:03:10 -03:00

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