package
0.0.0-20250130204033-e82d90384e5b
Repository: https://github.com/laurentgoderre/moby.git
Documentation: pkg.go.dev

# Functions

Build generates and writes a configuration file to path containing a nameserver entry for every element in nameservers, a "search" entry for every element in dnsSearch, and an "options" entry for every element in dnsOptions.
FilterResolvDNS cleans up the config in resolvConf.
Get returns the contents of /etc/resolv.conf and its hash.
GetNameservers returns nameservers (if any) listed in /etc/resolv.conf.
GetNameserversAsPrefix returns nameservers (if any) listed in /etc/resolv.conf as CIDR blocks (e.g., "1.2.3.4/32").
GetOptions returns options (if any) listed in /etc/resolv.conf If more than one options line is encountered, only the contents of the last one is returned.
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.
GetSpecific returns the contents of the user specified resolv.conf file and its hash.
No description provided by the author

# Constants

IPv4 and IPv6.
constants for the IP address type.
constants for the IP address type.

# Structs

File contains the resolv.conf content and its hash.