nslookup

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalLookupFactory

type GlobalLookupFactory struct {
	miekg.GlobalLookupFactory
	IPv4Lookup bool
	IPv6Lookup bool
}

Global Factory =============================================================

func (*GlobalLookupFactory) Help

func (s *GlobalLookupFactory) Help() string

Command-line Help Documentation. This is the descriptive text what is returned when you run zdns module --help

func (*GlobalLookupFactory) MakeRoutineFactory

func (s *GlobalLookupFactory) MakeRoutineFactory(threadID int) (zdns.RoutineLookupFactory, error)

func (*GlobalLookupFactory) SetFlags

func (s *GlobalLookupFactory) SetFlags(f *pflag.FlagSet)

type IpAddresses

type IpAddresses struct {
	IPv4Addresses []string
	IPv6Addresses []string
}

type Lookup

type Lookup struct {
	Factory *RoutineLookupFactory
	miekg.Lookup
}

Per Connection Lookup ======================================================

func (*Lookup) DoLookup

func (s *Lookup) DoLookup(name, nameServer string) (interface{}, zdns.Trace, zdns.Status, error)

type LookupClient

type LookupClient struct{}

This LookupClient is created to call the actual implementation of DoMiekgLookup

func (LookupClient) ProtocolLookup

func (lc LookupClient) ProtocolLookup(s *miekg.Lookup, q miekg.Question, nameServer string) (interface{}, zdns.Trace, zdns.Status, error)

type NSRecord

type NSRecord struct {
	Name          string   `json:"name" groups:"short,normal,long,trace"`
	Type          string   `json:"type" groups:"short,normal,long,trace"`
	IPv4Addresses []string `json:"ipv4_addresses,omitempty" groups:"short,normal,long,trace"`
	IPv6Addresses []string `json:"ipv6_addresses,omitempty" groups:"short,normal,long,trace"`
	TTL           uint32   `json:"ttl" groups:"normal,long,trace"`
}

type Result

type Result struct {
	Servers []NSRecord `json:"servers,omitempty" groups:"short,normal,long,trace"`
}

type RoutineLookupFactory

type RoutineLookupFactory struct {
	miekg.RoutineLookupFactory
	Factory *GlobalLookupFactory
}

Per GoRoutine Factory ======================================================

func (*RoutineLookupFactory) MakeLookup

func (s *RoutineLookupFactory) MakeLookup() (zdns.Lookup, error)

Jump to

Keyboard shortcuts

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