dns

package
v1.36.3 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Default location for the resolv.conf file.
	DefaultResolveConfPath = "/etc/resolv.conf"

	// Default cluster domain value for k8s clusters.
	DefaultClusterDomain = "cluster.local"
)

Variables

This section is empty.

Functions

func GetClusterDomain

func GetClusterDomain(resolvConfPath string) (string, error)

GetClusterDomain parses the path to resolv.conf to find the cluster domain.

func GetServiceDNSNames

func GetServiceDNSNames(name, namespace, clusterDomain string) []string

GetServiceDNSNames returns a list of a service's DNS names. We return: - <svc_name> - <svc_name>.<ns> - <svc_name>.<ns>.svc - <svc_name>.<ns>.svc.<cluster-domain>

Types

This section is empty.

Jump to

Keyboard shortcuts

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