dns

package
v0.0.0-...-6e54249 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OptionTypeNameserver = "nameserver"

Variables

This section is empty.

Functions

This section is empty.

Types

type ResolvConf

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

func GetResolvConfInstance

func GetResolvConfInstance() *ResolvConf

func (*ResolvConf) CreateNameserverAt

func (r *ResolvConf) CreateNameserverAt(checksum uint32, index int, nameserver string) (updChecksum uint32, err error)

func (*ResolvConf) CreateNameserverLast

func (r *ResolvConf) CreateNameserverLast(nameserver string) (index int, checksum uint32, err error)

func (*ResolvConf) DeleteNameserverAt

func (r *ResolvConf) DeleteNameserverAt(checksum uint32, index int) (nameserver string, updChecksum uint32, err error)

func (*ResolvConf) GetNameserverAt

func (r *ResolvConf) GetNameserverAt(n int) (nameserver string, checksum uint32, err error)

func (*ResolvConf) GetNameservers

func (r *ResolvConf) GetNameservers() (nameservers []string, checksum uint32, err error)

Jump to

Keyboard shortcuts

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