dns

package
v0.0.0-...-365054f Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: GPL-3.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// ScriptDir used only for unix.
	ScriptDir string
	IfaceName string
	DNS       []string
}

Config represent dns manager config.

type Manager

type Manager interface {
	// Set applies DNS configuration.
	Set(cfg Config) error
	// Clean removes DNS configuration.
	Clean() error
}

Manager is connection DNS configuration manager.

func NewManager

func NewManager() Manager

NewManager returns new DNS manager instance.

Jump to

Keyboard shortcuts

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