Socket
Socket
Sign inDemoInstall

dnslink-dnsimple

Package Overview
Dependencies
55
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dnslink-dnsimple

create and update dnslink records via the v2 dnsimple api


Version published
Weekly downloads
913
decreased by-1.19%
Maintainers
1
Install size
713 kB
Created
Weekly downloads
 

Readme

Source

Create and update DNSLink records via the v2 dnsimple api

You may also like

Usage

The dnsimple api requires and authentication token. Provide it by setting DNSIMPLE_TOKEN as an environment variable.

You can then use dnsimple-dnslink link a domain to CID

$ DNSIMPLE_TOKEN=$(cat token) dnslink-dnsimple -d example.org -l /ipfs/QmYz5328tp9deVZ8Ttuhhri5WicLvDznngYbZ68zKJeGRd

That will create or update a TXT record via the dnsimple api at _dnslink.example.org with the value dnslink=/ipfs/QmYz5328tp9deVZ8Ttuhhri5WicLvDznngYbZ68zKJeGRd, assuming your account already has a zone for example.org and your token is valid.

To get the full usage info just run dnslink-dnsimple

$ dnslink-dnsimple
USAGE
    DNSIMPLE_TOKEN=trustno1 dnslink-dnsimple -d <domain-name> -l <dnslink-value>
OPTIONS
    -l, --link  <string>    dnslink value, eg. ipfs path (required)
    -d, --domain <string>   dnsimple domain name (required)
    -r, --record <string>   domain record name (default: "_dnslink")
    --ttl <int>             set the ttl of the record (default: 60)
    --sandbox               use the dnsimple sandbox api
    --help                  show this documentation
EXAMPLES
    DNSIMPLE_TOKEN=$(cat token) dnslink-dnsimple -d domain.net -l /ipns/ipfs.io

Install

You can install via npm

$ npm install -g dnsimple-dnslink

or you can run it directly via npx

$ DNSIMPLE_TOKEN=$(cat token) npx dnsimple-dnslink -d webui.ipfs.io -l /ipfs/QmYz5328tp9deVZ8Ttuhhri5WicLvDznngYbZ68zKJeGRd

License

MIT © Protocol Labs

Keywords

FAQs

Last updated on 23 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc