package
0.12.1
Repository: https://github.com/sageprogrammer/podman.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Build writes a configuration file to path containing a "nameserver" entry for every element in dns, 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.
GetIfChanged retrieves the host /etc/resolv.conf file, checks against the last hash and, if modified since last check, returns the bytes and new hash.
GetLastModified retrieves the last used contents and hash of the host resolv.conf.
GetNameservers returns nameservers (if any) listed in /etc/resolv.conf.
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.
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.

# Constants

DefaultResolvConf points to the default file used for dns configuration on a linux machine.

# Structs

File contains the resolv.conf content and its hash.