dnslink

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 1 Imported by: 0

README

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cloudflare = cloudflare.SetRecord

Export all the DNS providers here

Functions

func Version

func Version() string

Returns the package version

Types

This section is empty.

Directories

Path Synopsis
providers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL