dns

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2019 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindAddress

func FindAddress(finder net.IP) string

FindAddress fetches the cached name for the argumented address.

func PluginNfqueueHandler

func PluginNfqueueHandler(mess dispatch.NfqueueMessage, ctid uint32, newSession bool) dispatch.NfqueueResult

PluginNfqueueHandler is called to handle nfqueue packet data. We only look at DNS packets, extracting the QNAME and putting it in the session table.

func PluginShutdown

func PluginShutdown()

PluginShutdown function called when the daemon is shutting down. We call Done for the argumented WaitGroup to let the main process know we're finished.

func PluginStartup

func PluginStartup()

PluginStartup function is called to allow plugin specific initialization. We increment the argumented WaitGroup so the main process can wait for our shutdown function to return during shutdown.

Types

type AddressHolder

type AddressHolder struct {
	CreationTime time.Time
	ExpireTime   time.Time
	Address      net.IP
	Name         string
}

AddressHolder is used to cache DNS names and IP addresses

Jump to

Keyboard shortcuts

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