dns

package
v0.0.0-...-f3338f8 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

An identifier for a set of DNS connections

func (Connection) Attributes

func (c Connection) Attributes() []attribute.KeyValue

type Monitor

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

func NewMonitor

func NewMonitor() (*Monitor, error)

func (*Monitor) DumpAnswers

func (m *Monitor) DumpAnswers(w io.Writer) error

DumpAnswers dumps all the dns record answers to the given writer.

func (*Monitor) ReverseResolve

func (m *Monitor) ReverseResolve(addrs []netip.Addr) (map[netip.Addr]string, map[string]string, error)

ReverseResolve resolves IP addresses to domain names and reverse CNAMEs.

func (*Monitor) Run

func (m *Monitor) Run(ctx context.Context)

Run starts the Monitor until the context is canceled.

type Payload

type Payload struct {
	*layers.DNS
	// contains filtered or unexported fields
}

func (*Payload) Attributes

func (p *Payload) Attributes() []attribute.KeyValue

Jump to

Keyboard shortcuts

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