Documentation ¶
Index ¶
- func DoLookup(udp *dns.Client, tcp *dns.Client, nameServer string, dnsType uint16, ...) (interface{}, zdns.Status, error)
- func DoTxtLookup(udp *dns.Client, tcp *dns.Client, nameServer string, prefix string, ...) (string, zdns.Status, error)
- func TranslateMiekgErrorCode(err int) zdns.Status
- type Answer
- type GlobalLookupFactory
- type Lookup
- type Result
- type RoutineLookupFactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoTxtLookup ¶
func TranslateMiekgErrorCode ¶
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 (*Answer) MarshalJSON ¶
type GlobalLookupFactory ¶
type GlobalLookupFactory struct { }
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 ¶
func (*RoutineLookupFactory) Initialize ¶
func (s *RoutineLookupFactory) Initialize(t time.Duration)
Click to show internal directories.
Click to hide internal directories.