dnsserver

package
v0.1.0-dev Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(conf Config) (*dns.Server, error)

func Run

func Run(ctx context.Context, conf Config, opts RunOptions) error

Types

type Config

type Config struct {
	Addr string
	Net  string

	SinkholeIPv4 netip.Addr
	SinkholeIPv6 netip.Addr
}

type RunOptions

type RunOptions struct {
	ShutdownTimeout time.Duration
}

Jump to

Keyboard shortcuts

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