dns

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigureDNSCall

type ConfigureDNSCall struct {
	Interface string
	Addrs     []netip.Addr
	Domain    string
}

type FakeResolver

type FakeResolver struct {
	ConfigureDNSCalls    []ConfigureDNSCall
	ConfigureDNSCallback func(ctx context.Context, iface string, addrs []netip.Addr, domain string) error
}

func (*FakeResolver) ConfigureDNS

func (f *FakeResolver) ConfigureDNS(ctx context.Context, iface string, addrs []netip.Addr, domain string) error

type Resolver

type Resolver interface {
	// ConfigureDNS configures DNS server addresses for the given interface,
	// and ensures they are used to query hosts in the given domain.
	ConfigureDNS(ctx context.Context, iface string, addrs []netip.Addr, domain string) error
}

Resolver represents the host's DNS resolver.

func NewSystemdResolved

func NewSystemdResolved() Resolver

Jump to

Keyboard shortcuts

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