dns

package module
v0.0.0-...-f096672 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2020 License: MIT Imports: 7 Imported by: 0

README

github.com/THREATINT/go-dns

Package dns

License

Release under the MIT License. (see LICENSE)

Codacy Badge

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client struct

func NewClient

func NewClient(servers []string) *Client

NewClient (servers)

func (*Client) LookupAddr

func (client *Client) LookupAddr(addr string) ([]string, error)

LookupAddr (addr)

func (*Client) LookupHostname

func (client *Client) LookupHostname(hostname string) ([]string, error)

LookupHostname (hostname)

func (*Client) Retries

func (client *Client) Retries() uint8

Retries (client)

func (*Client) SetRetries

func (client *Client) SetRetries(retries uint8)

SetRetries (retries)

func (*Client) SetTimeout

func (client *Client) SetTimeout(timeout time.Duration)

SetTimeout (timeout)

func (*Client) Timeout

func (client *Client) Timeout() time.Duration

Timeout (client)

Jump to

Keyboard shortcuts

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