doh

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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 NewClient

func NewClient(opts ...ClientOption) *Client

func (*Client) Exchange

func (c *Client) Exchange(req *dns.Msg) (r *dns.Msg, rtt time.Duration, err error)

type ClientOption

type ClientOption func(*clientOptions) error

func WithBootstrap added in v1.0.1

func WithBootstrap(resolver func(domain string) (net.IP, error)) ClientOption

func WithDebug

func WithDebug(debug bool) ClientOption

func WithServer

func WithServer(server string) ClientOption

func WithSocksProxy added in v1.1.0

func WithSocksProxy(getDialer func(d *net.Dialer) (proxy.Dialer, proxy.ContextDialer, error)) ClientOption

func WithTimeout

func WithTimeout(t time.Duration) ClientOption

type DoHServer added in v1.2.6

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

func NewServer added in v1.2.6

func NewServer(host, username, password string, handler func(req *dns.Msg) *dns.Msg) *DoHServer

func (*DoHServer) Serve added in v1.2.6

func (s *DoHServer) Serve() error

Jump to

Keyboard shortcuts

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