dnsconfig

package module
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2014 License: BSD-3-Clause Imports: 5 Imported by: 6

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func DnsWriteConfig added in v0.2.0

func DnsWriteConfig(conf *DnsConfig, filename string) (err error)

Types

type DnsConfig

type DnsConfig struct {
	Servers  []string `json:"servers"` // servers to use
	Search   []string `json:"search"`  // suffixes to append to local name
	Ndots    int      `json:"ndots"`   // number of dots in name to trigger absolute lookup
	Timeout  int      `json:"timeout"` // seconds before giving up on packet
	Attempts int      `json:"attemps"` // lost packets before giving up on server
	Rotate   bool     `json:"rotate"`  // round robin among servers
}

func DnsReadConfig

func DnsReadConfig(filename string) (*DnsConfig, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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