package resolvconf
import "github.com/docker/docker/pkg/networkfs/resolvconf"
Index ¶
- func Build(path string, dns, dnsSearch []string) error
- func Get() ([]byte, error)
- func GetNameservers(resolvConf []byte) []string
- func GetNameserversAsCIDR(resolvConf []byte) []string
- func GetSearchDomains(resolvConf []byte) []string
Functions ¶
func Build ¶
func Get ¶
func GetNameservers ¶
GetNameservers returns nameservers (if any) listed in /etc/resolv.conf
func GetNameserversAsCIDR ¶
GetNameserversAsCIDR returns nameservers (if any) listed in /etc/resolv.conf as CIDR blocks (e.g., "1.2.3.4/32") This function's output is intended for net.ParseCIDR
func GetSearchDomains ¶
GetSearchDomains returns search domains (if any) listed in /etc/resolv.conf If more than one search line is encountered, only the contents of the last one is returned.
Source Files ¶
- Version
- v1.3.2
- Published
- Nov 24, 2014
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 13 minutes ago –
Tools for package owners.