local

package
v0.48.0-dev2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2025 License: BSD-3-Clause Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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