dnslive
v1.0.1
Published
dns.live authoritative DNS for Handshake Naming System top level domains (TLDs).
Downloads
10
Maintainers
Readme
dnslive
Quick and simple zone hosting for your Handshake Naming System (HNS) Top Level Domain (TLD)
Install
npm install dnslive
Use
node dnslive.js zone-file signature
Example of full commands to get up and going (assumes Bob Wallet by Kyokan)
- Download hs-client
git clone https://github.com/handshake-org/hs-client
- Type
cd hs-client
npm install --production
- Get your API key from Bob Wallet (Go to settings and copy HSD API Key)
- Go to your Domains list and find out the address that owns the domain that you want to have served.
- Type
cd bin
- Type this command and save the result somewhere -- it's your private key.
./hsw-cli --id=allison dump <Address That owns your domain> --api-key=<API KEY from step 3>
- Type this command and save the signature result -- you'll need it for the final update, it is a signature.
./hsd-cli rpc signmessagewithprivkey <private key from step 6> `node /path/to/dnslive/urlencode.js /path/to/dnslive/zonefile` --api-key=<API KEY from step 3>
- Go to the /path/to/dnslive directory
node dnslive.js <zone file & domain> <signature from step 7>
Straight forward example assuming you have 2 folders at the same level, hs-client and dnslive (i.e., installed them in same folder):
cd hs-client/bin
./hsd-cli rpc signmessagewithprivkey `./hsw-cli --id=allison dump ADDRESS --api-key=APIKEY `node ../../dnslive/urlencode.js ../../dnslive/ix` --api-key=APIKEY
SIGNATUREOUTPUT
cd ../../dnslive
node dnslive.js DOMAIN SIGNATUREOUTPUT
Copyright
Copyright (c) 2020 The Handshake Community MIT Licensed.