dns

package
v0.0.0-...-6e12e1e Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnimplemented error = errors.New("unimplemented DNS server")
)

Functions

func Unimplemented

func Unimplemented() unimplemented

Unimplemented returns an unimplemented (and invalid) dns.Repository

Types

type Repository

type Repository interface {
	// Answer will write the IP address present in the store.Record in the dns.Msg
	// slice of Answers
	Answer(*store.Record, *dns.Msg)
	// Fallback is called when the DNS store does not hold a record for the requested
	// domain, so the DNS service spawns a DNS client that will query the fallback server
	// and write that answer to the dns.Msg
	Fallback(*store.Record, *dns.Msg)
}

Repository defines the set of operations that a DNS answerer should expose

This will consist in building answers for DNS messages based on store.Records, or by fetching the answers from a fallback / secondary DNS

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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