Documentation ¶
Overview ¶
Package resolvconffile parses & serializes /etc/resolv.conf-style files.
It's a leaf package so both net/dns and net/dns/resolver can depend on it and we can unify a handful of implementations.
The package is verbosely named to disambiguate it from resolvconf the daemon, which Tailscale also supports.
Index ¶
Constants ¶
View Source
const Path = "/etc/resolv.conf"
Path is the canonical location of resolv.conf.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Nameservers are the IP addresses of the nameservers to use. Nameservers []netaddr.IP // SearchDomains are the domain suffixes to use when expanding // single-label name queries. SearchDomains is additive to // whatever non-Tailscale search domains the OS has. SearchDomains []dnsname.FQDN }
Config represents a resolv.conf(5) file.
Click to show internal directories.
Click to hide internal directories.