dns

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CachedDNSResolver

type CachedDNSResolver struct {
	// contains filtered or unexported fields
}

func NewCachedDNSResolver

func NewCachedDNSResolver(ctx context.Context, server string, connectTimeout, timeout time.Duration, cacheTimeout time.Duration, logger *logrus.Logger) *CachedDNSResolver

func (*CachedDNSResolver) CachedDNSLookup

func (r *CachedDNSResolver) CachedDNSLookup(ip string) ([]string, error)

CachedDNSLookup performs a DNS lookup and caches the result to not hammer your DNS server.

Jump to

Keyboard shortcuts

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