resolv

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 20, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResolvPath = "/etc/resolv.conf"
)

Variables

View Source
var (
	AppName = "tuncfg"
)

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(name string, dnsServers []net.IP, dnsSuffixes []string, rewrite bool) (*Handler, error)

func (*Handler) GetDNSDomains

func (h *Handler) GetDNSDomains() []string

func (*Handler) GetOriginalDNS

func (h *Handler) GetOriginalDNS() []net.IP

func (*Handler) GetOriginalOptions

func (h *Handler) GetOriginalOptions() []string

func (*Handler) GetOriginalSuffixes

func (h *Handler) GetOriginalSuffixes() []string

func (*Handler) IsNetworkManager

func (h *Handler) IsNetworkManager() bool

func (*Handler) IsResolve

func (h *Handler) IsResolve() bool

func (*Handler) IsShill

func (h *Handler) IsShill() bool

func (*Handler) Restore

func (h *Handler) Restore()

func (*Handler) Set

func (h *Handler) Set() error

func (*Handler) SetDNSDomains

func (h *Handler) SetDNSDomains(dnsDomains []string)

func (*Handler) SetDNSServers

func (h *Handler) SetDNSServers(dnsServers []net.IP)

func (*Handler) SetOptions

func (h *Handler) SetOptions(dnsOptions []string)

func (*Handler) SetSuffixes

func (h *Handler) SetSuffixes(dnsSuffixes []string)

Jump to

Keyboard shortcuts

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