Skip to content

A simple library to support setting ACME challenge DNS records on Katapult's DNS service

Notifications You must be signed in to change notification settings

krystal/go-katapult-dns-acme-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Katapult ACME DNS Solver

This is a simple Go library which exposes functionality to create ACME challenge DNS queries using Katapult's DNS service.

The API is fairly straight forward as shown below. The zone in question must be available to the API token which has been provided.

// Create a new solver by providing the organization sub-domain and the
// API token.
logger := log.New(os.Stdout, "", log.LstdFlags)
solver := solver.NewSolver("api-token", logger)

// Set the record for the given zone with the given value.
err := solver.Set("example.com", "_acme-challenge.example.com", "abcdef")

// Delete records which match the given record and value
err = solver.Cleanup("example.com", "_acme-challenge.example.com", "abcdef")

// Delete all records regardless of their value
err = solver.CleanupAll("example.com", "_acme-challenge.example.com")

About

A simple library to support setting ACME challenge DNS records on Katapult's DNS service

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages