Documentation ¶
Index ¶
Constants ¶
View Source
const Location = "/etc/resolv.conf"
Location is the location of the system DNS configuration.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Servers []string // server addresses (in host:port form) to use Search []string // rooted suffixes to append to local name NDots int // number of dots in name to trigger absolute lookup Timeout time.Duration // wait before giving up on a query. Attempts int // lost packets before giving up on server Rotate bool // round robin among servers UnknownOpt bool // anything unknown was encountered Lookup []string // OpenBSD top-level database "lookup" order MTime time.Time // time of resolv.conf modification SingleRequest bool // use sequential A and AAAA queries instead of parallel queries UseTCP bool // force usage of TCP for DNS resolutions TrustAD bool // add AD flag to queries NoReload bool // do not check for config file updates }
Config is the system DNS configuration.
Click to show internal directories.
Click to hide internal directories.