...

Package dns

import "k8s.io/kubernetes/test/images/agnhost/dns"
Overview
Index

Overview ▾

Variables

CmdDNSServerList is used by agnhost Cobra.

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,
}

CmdDNSSuffix is used by agnhost Cobra.

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,
}

CmdEtcHosts is used by agnhost Cobra.

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,
}

func GetDNSSuffixList

func GetDNSSuffixList() []string

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