nameserver

package
v0.0.0-...-e99a25f Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAndStart

func InitAndStart(config *certainly.CertainlyCFG, logger *zap.SugaredLogger, notification *notification.Notifications, errChan chan error) []certainly.CertainlyNS

func NewDNSServer

func NewDNSServer(config *certainly.CertainlyCFG, logger *zap.SugaredLogger, proto string, notifications *notification.Notifications) certainly.CertainlyNS

NewDNSServer parses the DNS records from config and returns a new DNSServer struct

Types

type Nameserver

type Nameserver struct {
	Config            *certainly.CertainlyCFG
	Logger            *zap.SugaredLogger
	Notification      *notification.Notifications
	Server            *dns.Server
	OwnDomains        []string
	NotifyStartedFunc func()
	SOA               dns.RR

	Domains map[string]Records
	// contains filtered or unexported fields
}

func (*Nameserver) ParseRecords

func (n *Nameserver) ParseRecords()

ParseRecords parses a slice of DNS record string

func (*Nameserver) SetChallengeToken

func (n *Nameserver) SetChallengeToken(domain, key string)

SetOwnAuthKey sets the ACME challenge token for completing dns validation for certainly server itself

func (*Nameserver) SetNotifyStartedFunc

func (n *Nameserver) SetNotifyStartedFunc(fun func())

func (*Nameserver) Start

func (n *Nameserver) Start(errorChannel chan error)

type Records

type Records struct {
	Records []dns.RR
}

Records is a slice of ResourceRecords

Jump to

Keyboard shortcuts

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