dns

package
v1.1.30 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddServiceNameToHosts

func AddServiceNameToHosts(ctx context.Context, serviceInterface v13.ServiceInterface)

func CancelDNS

func CancelDNS()

func GetDNSIPFromDnsPod

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

func GetHostFile() string

func NewDNSServer

func NewDNSServer(network, address string, forwardDNS *miekgdns.ClientConfig) error

func SetupDNS

func SetupDNS(clientConfig *miekgdns.ClientConfig, _ []string) error

systemd-resolve --status, systemd-resolve --flush-caches

func WriteResolvConf

func WriteResolvConf(config miekgdns.ClientConfig) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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