dns

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dns is responsible for handling all the DNS Requests associated with the ACME DNS-01 Challenge

Index

Constants

View Source
const (
	Network = "udp"
	Mbox    = "admin."

	ShortTTL = 1
	LongTTL  = 86400
	Refresh  = 14400
	Retry    = 3600
	Expire   = 604800
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DNS

type DNS struct {
	// contains filtered or unexported fields
}

DNS is a DNS Server designed to respond to ACME DNS-01 Challenges

func New

func New(root string, public string, opts ...options.Option) *DNS

New creates a new instance of DNS given a set of configuration options, a root domain, and a public domain that resolves to this instance of DNS

func (*DNS) Shutdown

func (d *DNS) Shutdown() error

Shutdown shuts the DNS server down

func (*DNS) Start

func (d *DNS) Start(addr string) error

Start starts the DNS server on a given address addr and then blocks as long as the server is listening.

Jump to

Keyboard shortcuts

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