DNS Stamp
This node module provides a simple API to parse and generate DNS Stamp as defined by Frank Denis.
Installation
npm install dnsstamp
Usage
Parse a stamp URL:
const DNSStamp = require('dnsstamp');
let stamp = DNSStamp.parse(sdns);
Create a stamp URL:
const DNSStamp = require('dnsstamp');
let stamp = new DNSStamp.DNSCrypt(addr, {
pk: pk,
providerName: providerName,
});
let sdns = stamp.toString();
Supported stamps:
DNSStamp.DNSCrypt
: constructor(addr
, {props
, pk
, providerName
})
DNSStamp.DOH
: constructor(addr
, {props
, hostName
, hash
, path
})
DNSStamp.DOT
: constructor(addr
, {props
, hostName
, hash
})
DNSStamp.Plain
: constructor(addr
, {props
})
Licenses
All source code is licensed under the MIT License.