Skip to content

pinbase/go-dnslink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

go-dnslink πŸ”—

This is a module to programmatically create and update DNSLink πŸ”— records from various DNS providers.

Table of Contents

Install

go-dnslink is a standard Go module which can be installed with:

go get github.com/pinbase/go-dnslink

Usage

Import the module as follows

import (
  ...
  "github.com/pinbase/go-dnslink"
)

Cloudflare

The "DOMAIN" value should be the full domain you want to assign a DNSLink record to, e.g. "pinbase.io".

The CID value should be a CID from go-cid.

API Token

err := dnslink.Cloudflare("API_TOKEN", "", "DOMAIN", CID)

You can generate an API token in the Cloudflare dashboard https://dash.cloudflare.com/profile/api-tokens, using the Edit zone DNS template.

API Key and Email

err := dnslink.Cloudflare("API_KEY", "EMAIL_ADDRESS", "DOMAIN", CID)

Or you can provide your account's API key and email address.

Contribute

PRs are welcome!

Especially good PRs would be ones implementing more DNS providers.

If updating the README, please stick to the standard-readme specification.

License

MIT Β© Pinbase

About

A package to programmatically manage DNSLink πŸ”— records for IPFS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages