Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigureDNSCall ¶
type FakeResolver ¶
type FakeResolver struct {
ConfigureDNSCalls []ConfigureDNSCall
ConfigureDNSCallback func(ctx context.Context, iface string, addrs []netip.Addr, domain string) error
}
func (*FakeResolver) ConfigureDNS ¶
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
Click to show internal directories.
Click to hide internal directories.