ara-identity-dns

0.3.0 • Public • Published

dns-identity-resolution

Get DIDs stored in TXT records for domains

Table of Contents

Status

Stable

Installation

npm install arablocks/dns-identity-resolution

Usage

const { getDID } = require('dns-identity-resolution')

const did = await getDID({ domain: 'ara.one' })

API Docs

async getDID({ domain, dns = '8.8.8.8', port = 53 })

Resolve TXT record matching given domain

  • domain: Domain of TXT record
  • [dns]: IP of desired DNS server
  • [port]: Port to communicate with DNS server on

Returns Object<DID>. Returns DID object of info about identity

Contributing

License

LGPL-3.0

Package Sidebar

Install

npm i ara-identity-dns

Weekly Downloads

2

Version

0.3.0

License

LGPL-3.0

Unpacked Size

16.4 kB

Total Files

6

Last publish

Collaborators

  • werle