nslookup

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NSLookupModule

type NSLookupModule struct {
	cli.BasicLookupModule
	IPv4Lookup bool `long:"ipv4-lookup" description:"perform A lookups for each NS server"`
	IPv6Lookup bool `long:"ipv6-lookup" description:"perform AAAA record lookups for each NS server"`
	// contains filtered or unexported fields
}

func (*NSLookupModule) CLIInit

func (nsMod *NSLookupModule) CLIInit(gc *cli.CLIConf, resolverConf *zdns.ResolverConfig) error

CLIInit initializes the NSLookupModule with the given parameters, used to call NSLookup from the command line

func (*NSLookupModule) GetDescription

func (nsMod *NSLookupModule) GetDescription() string

func (*NSLookupModule) Help

func (nsMod *NSLookupModule) Help() string

Help returns the module's help string

func (*NSLookupModule) Init

func (nsMod *NSLookupModule) Init(ipv4Lookup, ipv6Lookup bool)

Init initializes the NSLookupModule with the given parameters, used to call NSLookup programmatically

func (*NSLookupModule) Lookup

func (nsMod *NSLookupModule) Lookup(ctx context.Context, r *zdns.Resolver, lookupName string, nameServer *zdns.NameServer) (interface{}, zdns.Trace, zdns.Status, error)

func (*NSLookupModule) NewFlags

func (nsMod *NSLookupModule) NewFlags() interface{}

func (*NSLookupModule) Validate

func (nsMod *NSLookupModule) Validate(args []string) error

func (*NSLookupModule) WithTestingLookup

func (nsMod *NSLookupModule) WithTestingLookup(f func(r *zdns.Resolver, lookupName string, nameServer *zdns.NameServer) (interface{}, zdns.Trace, zdns.Status, error))

Jump to

Keyboard shortcuts

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