ip

package
v0.0.0-...-f39c4bf Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChallengeTtl         = 120
	MaxUpdatesPerRequest = 10
	// not really a secret, published for client compatibility, not enforced
	TsigSecret = "ipL40QrEy8cSwmP6OqCihGlYNmE="
)

Variables

This section is empty.

Functions

func ParseIP

func ParseIP(qname string, suffixLength int) net.IP

Types

type RecordGenerator

type RecordGenerator struct {
	Addrs               []net.IP
	SelfChallengeTarget string
	ChallengeStore      ttlstore.TtlStore
}

func (*RecordGenerator) GenerateRecords

func (g *RecordGenerator) GenerateRecords(q *dns.Question, zone string) (rrs []dns.RR, validName bool)

type UpdateHandler

type UpdateHandler struct {
	ChallengeStore ttlstore.TtlStore
	UpdateLimiter  *rate.Limiter
}

func (*UpdateHandler) HandleUpdate

func (h *UpdateHandler) HandleUpdate(w dns.ResponseWriter, req *dns.Msg, zone string)

adheres loosely to [rfc 2136](https://datatracker.ietf.org/doc/html/rfc2136)

Jump to

Keyboard shortcuts

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