ara-identity-dns
v0.3.0
Published
Resolve identities from domains
Downloads
7
Readme
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