fqdncache

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FQDNCache

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

FQDNCache maps IP addresses to fqdn names per endpoint

func New

func New() *FQDNCache

New empty FQDNCache

func (*FQDNCache) AddDNSLookup

func (f *FQDNCache) AddDNSLookup(epID uint64, lookupTime time.Time, domainName string, ips []net.IP, ttl uint32)

AddDNSLookup adds a DNS lookup into the FQDNCache.

func (*FQDNCache) GetNamesOf

func (f *FQDNCache) GetNamesOf(epID uint64, ip net.IP) []string

GetNamesOf returns all domain names associated with ip from the perspective of a given endpoint.

func (*FQDNCache) InitializeFrom

func (f *FQDNCache) InitializeFrom(entries []*models.DNSLookup)

InitializeFrom replaces the content of the FQDN cache with the lookups from entries.

Jump to

Keyboard shortcuts

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