dns

package
v1.21.3-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdDNSServerList = &cobra.Command{
	Use:   "dns-server-list",
	Short: "Prints the host's DNS Server list",
	Long:  `Prints the DNS Server list of this host.`,
	Args:  cobra.MaximumNArgs(0),
	Run:   printDNSServerList,
}

CmdDNSServerList is used by agnhost Cobra.

View Source
var CmdDNSSuffix = &cobra.Command{
	Use:   "dns-suffix",
	Short: "Prints the host's DNS suffix list",
	Long:  `Prints the DNS suffixes of this host.`,
	Args:  cobra.MaximumNArgs(0),
	Run:   printDNSSuffixList,
}

CmdDNSSuffix is used by agnhost Cobra.

View Source
var CmdEtcHosts = &cobra.Command{
	Use:   "etc-hosts",
	Short: "Prints the host's /etc/hosts file",
	Long:  `Prints the "hosts" file of this host."`,
	Args:  cobra.MaximumNArgs(0),
	Run:   printHostsFile,
}

CmdEtcHosts is used by agnhost Cobra.

Functions

func GetDNSSuffixList added in v1.20.0

func GetDNSSuffixList() []string

GetDNSSuffixList reads DNS config file and returns the list of configured DNS suffixes

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL