ns

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyDNSServer missing dns server
	ErrEmptyDNSServer = errors.New("dns_server was empty or invalid")
)

Functions

This section is empty.

Types

type NS

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

NS module for extracting NS related information for a scan group.

func New

func New(eventClient am.EventService, dc *dnsclient.Client, st state.Stater) *NS

New creates a new NS module for identifying zone information via DNS and storing the results in Redis.

func (*NS) Analyze

func (ns *NS) Analyze(ctx context.Context, userContext am.UserContext, address *am.ScanGroupAddress) (*am.ScanGroupAddress, map[string]*am.ScanGroupAddress, error)

Analyze an address, extracts NS, MX, A, AAAA, CNAME records TODO: add error if shutting down so dispatcher can retry

func (*NS) Init

func (ns *NS) Init(config []byte) error

Init the redisclient and dns client.

func (*NS) Name

func (ns *NS) Name() string

Name returns the module name

func (*NS) Stop

func (ns *NS) Stop(ctx context.Context)

Stop this module from running, and close down subscriptions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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