Documentation
¶
Index ¶
Constants ¶
View Source
const ResolvPath = "/etc/resolv.conf"
Variables ¶
This section is empty.
Functions ¶
func DnsWriteConfig ¶ added in v0.2.0
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 ¶
Click to show internal directories.
Click to hide internal directories.