Documentation
¶
Index ¶
- func AddServiceNameToHosts(ctx context.Context, serviceInterface v13.ServiceInterface, hosts ...Entry)
- func CancelDNS()
- func GetDNSIPFromDnsPod(clientset *kubernetes.Clientset) (ips []string, err error)
- func GetDNSServiceIPFromPod(clientset *kubernetes.Clientset, restclient *rest.RESTClient, ...) (*miekgdns.ClientConfig, error)
- func GetHostFile() string
- func NewDNSServer(network, address string, forwardDNS *miekgdns.ClientConfig) error
- func SetupDNS(clientConfig *miekgdns.ClientConfig, _ []string, useLocalDNS bool) error
- func SetupLocalDNS(clientConfig *miekgdns.ClientConfig, existNameservers []string) error
- func WriteResolvConf(config miekgdns.ClientConfig) error
- type CoreFile
- type CoreFileTmpl
- type Entry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddServiceNameToHosts ¶ added in v1.1.17
func AddServiceNameToHosts(ctx context.Context, serviceInterface v13.ServiceInterface, hosts ...Entry)
func GetDNSIPFromDnsPod ¶ added in v1.1.28
func GetDNSIPFromDnsPod(clientset *kubernetes.Clientset) (ips []string, err error)
func GetDNSServiceIPFromPod ¶
func GetDNSServiceIPFromPod(clientset *kubernetes.Clientset, restclient *rest.RESTClient, config *rest.Config, podName, namespace string) (*miekgdns.ClientConfig, error)
func GetHostFile ¶ added in v1.1.17
func GetHostFile() string
func NewDNSServer ¶
func NewDNSServer(network, address string, forwardDNS *miekgdns.ClientConfig) error
func SetupDNS ¶
func SetupDNS(clientConfig *miekgdns.ClientConfig, _ []string, useLocalDNS bool) error
systemd-resolve --status, systemd-resolve --flush-caches
func SetupLocalDNS ¶ added in v1.1.33
func SetupLocalDNS(clientConfig *miekgdns.ClientConfig, existNameservers []string) error
func WriteResolvConf ¶ added in v1.1.21
func WriteResolvConf(config miekgdns.ClientConfig) error
Types ¶
type CoreFile ¶ added in v1.1.33
type CoreFile struct {
Content []byte
}
func BuildCoreFile ¶ added in v1.1.33
func BuildCoreFile(corefileTmpl CoreFileTmpl) (*CoreFile, error)
func (*CoreFile) ServerType ¶ added in v1.1.33
The type of server this input is intended for
type CoreFileTmpl ¶ added in v1.1.33
Click to show internal directories.
Click to hide internal directories.