dns

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderCloudflare   = "cloudflare"
	ProviderRoute53      = "route53"
	ProviderGoDaddy      = "godaddy"
	ProviderGoogleCloud  = "googlecloud"
	ProviderAzure        = "azure"
	ProviderDigitalOcean = "digitalocean"
	ProviderNS1          = "ns1"
	ProviderVercel       = "vercel"
	ProviderNamecheap    = "namecheap"
	ProviderDNSimple     = "dnsimple"
	ProviderClouDNS      = "cloudns"
	ProviderDNSPod       = "dnspod"
	ProviderHostinger    = "hostinger"
	ProviderWix          = "wix"
	ProviderIONOS        = "ionos"
	ProviderOVH          = "ovh"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChallengeType

type ChallengeType string
const (
	ChallengeTypeHTTP01 ChallengeType = "http-01"
	ChallengeTypeDNS01  ChallengeType = "dns-01"
)

type DNSRecordManager

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

func NewDNSRecordManager

func NewDNSRecordManager(challengeType ChallengeType, dnsDelegationDomain, cNameTarget string, lookup Lookup) *DNSRecordManager

func (*DNSRecordManager) GetRequiredDNSRecords

func (m *DNSRecordManager) GetRequiredDNSRecords(hostname string) []domain.DNSRecord

type Lookup

type Lookup interface {
	LookupNS(name string) ([]*net.NS, error)
	LookupIP(name string) ([]net.IP, error)
	LookupCNAME(name string) (string, error)
	LookupHost(name string) ([]string, error)
	LookupTXT(name string) ([]string, error)
}

Lookup abstracts all DNS resolution so it can be replaced in tests.

func DirectUDPLookup

func DirectUDPLookup(nameserver string) Lookup

func NetLookup

func NetLookup() Lookup

NetLookup returns the production Lookup backed by the standard library.

Jump to

Keyboard shortcuts

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