Skip to content
DNS Stamp encoding/decoding library for node
TypeScript
Branch: master
Clone or download
Latest commit 2fd8017 May 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
package-lock.json
package.json
stamp.ts
test.ts
tsconfig.json

README.md

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.

You can’t perform that action at this time.