doh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 12 Imported by: 0

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
}

func New

func New(serverURL string, serverAddr string) (*Client, error)

New creates a new Client pointed at serverAddr. serverURL is the url of the dns server. serverAddr should be in the form https://ip:port. Specifying the serverName and serverAddr is required to avoid needing DNS in order to perform DNS queries.

func (*Client) Exchange

func (c *Client) Exchange(ctx context.Context, m *dns.Msg) (r *dns.Msg, rtt time.Duration, err error)

Jump to

Keyboard shortcuts

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