dns

package
v0.0.0-...-db96cfc Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultZoneResolver

func DefaultZoneResolver(fqdn string) (string, error)

DefaultZoneResolver determines the authoritative zone for the given fqdn by recursing up the domain labels until the nameserver returns a SOA record in the answer section.

Types

type Challenge

type Challenge struct {
	EncodedKeyAuth string // encoded key authorization value
	FQDN           string // FQDN we want to verify
}

Challenge holds information about an ACME challenge.

type Provider

type Provider interface {
	Present(c Challenge) error
	CleanUp(c Challenge) error
}

Provider calls the DNS provider API

func NewProvider

func NewProvider(p libdnsfactory.Provider, resolver ZoneResolver) (Provider, error)

NewProvider creates a new provider

func NewProviderFromConfig

func NewProviderFromConfig(providerCfg *config.Provider, resolver ZoneResolver) (Provider, error)

NewProviderFromConfig creates a new provider from a config.Provider instance

type ZoneResolver

type ZoneResolver = func(string) (string, error)

ZoneResolver resolve the zone from an FQND

Jump to

Keyboard shortcuts

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