Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

DNS Stamp encoding/decoding library for node

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published