dns

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClusterServer *net.Resolver
View Source
var ClusterServerIP = ""

Functions

func GetClusterDnsServer

func GetClusterDnsServer(services []*corev1.Service) (string, bool)

func IsIPv4

func IsIPv4(address string) bool

func IsIPv6

func IsIPv6(address string) bool

func LookupIP

func LookupIP(hostname string) ([]net.IP, error)

func PurgeIPv6

func PurgeIPv6(ips []net.IP) []net.IP

func ResolverFromIP

func ResolverFromIP(ip string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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