local

package
v0.62.3 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

func NewResolver

func NewResolver() *Resolver

func (*Resolver) ID

func (d *Resolver) ID() types.HandlerID

ID returns the unique handler ID

func (*Resolver) MatchSubdomains

func (d *Resolver) MatchSubdomains() bool

func (*Resolver) ProbeAvailability

func (d *Resolver) ProbeAvailability()

func (*Resolver) RegisterRecord

func (d *Resolver) RegisterRecord(record nbdns.SimpleRecord) error

RegisterRecord stores a new record by appending it to any existing list

func (*Resolver) ServeDNS

func (d *Resolver) ServeDNS(w dns.ResponseWriter, r *dns.Msg)

ServeDNS handles a DNS request

func (*Resolver) Stop

func (d *Resolver) Stop()

func (*Resolver) String

func (d *Resolver) String() string

String returns a string representation of the local resolver

func (*Resolver) Update

func (d *Resolver) Update(update []nbdns.SimpleRecord)

Jump to

Keyboard shortcuts

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