miekg

package
v1.0.0-RC1 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoLookup

func DoLookup(udp *dns.Client, tcp *dns.Client, nameServer string, dnsType uint16, name string) (interface{}, zdns.Status, error)

func DoTxtLookup

func DoTxtLookup(udp *dns.Client, tcp *dns.Client, nameServer string, prefix string, name string) (string, zdns.Status, error)

func TranslateMiekgErrorCode

func TranslateMiekgErrorCode(err int) zdns.Status

Types

type Answer

type Answer struct {
	Ttl        uint32
	Type       string
	Name       string
	Answer     string
	Preference uint16
	Ns         string
	Mbox       string
	Serial     uint32
	Refresh    uint32
	Retry      uint32
	Expire     uint32
	Minttl     uint32
}

func ParseAnswer

func ParseAnswer(ans dns.RR) *Answer

func (*Answer) MarshalJSON

func (a *Answer) MarshalJSON() ([]byte, error)

type GlobalLookupFactory

type GlobalLookupFactory struct {
}

type Lookup

type Lookup struct {
	DNSType dns.Type
	Prefix  string
	zdns.BaseLookup
}

type Result

type Result struct {
	Answers     []Answer `json:"answers"`
	Additional  []Answer `json:"additionals"`
	Authorities []Answer `json:"authorities"`
	Protocol    string   `json:"protocol"`
}

result to be returned by scan of host

type RoutineLookupFactory

type RoutineLookupFactory struct {
	Client    *dns.Client
	TCPClient *dns.Client
}

func (*RoutineLookupFactory) Initialize

func (s *RoutineLookupFactory) Initialize(t time.Duration)

Jump to

Keyboard shortcuts

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