Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

decentralized-identity/uni-resolver-driver-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIF Logo

Universal Resolver Driver: dns

This is a Universal Resolver driver for DNS identifiers.

Specifications

Example Identifiers

ssi.labs.nic.at

Configuration

For downloading the dependencies of this project a Personal Access Token for GitHub must be configured in file settings.xml according to Creating a personal access token for the command line.

Build and Run (Docker)

docker build -f ./docker/Dockerfile . -t universalresolver/driver-dns
docker run -p 8080:8080 universalresolver/driver-dns
curl -X GET http://localhost:8080/1.0/identifiers/ssi.labs.nic.at

Build (native Java)

Maven build:

mvn --settings settings.xml clean install

Driver Environment Variables

The driver recognizes the following environment variables:

uniresolver_driver_dns_dnsServers

  • Specifies a semicolon-separated list of DNS servers to use for lookups.
  • Default value: (empty string)

Driver Metadata

The driver returns the following metadata in addition to a DID document:

  • did: A DID that was found for the given DNS identifier.