doh

package
v0.0.0-...-c2fff64 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultDoHServers = []string{
	"https://1.1.1.1/dns-query",
	"https://8.8.8.8/dns-query",
	"https://9.9.9.9:5053/dns-query",
}

Functions

This section is empty.

Types

type Option

type Option func(*config)

func WithDoHServers

func WithDoHServers(urls []string) Option

func WithHTTPClient

func WithHTTPClient(client *http.Client) Option

type Resolver

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

func New

func New(options ...Option) (resolver *Resolver, err error)

func (*Resolver) Query

func (resolver *Resolver) Query(msg *dns.Msg) (resp *dns.Msg, err error)

Jump to

Keyboard shortcuts

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