doh

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dialer

func Dialer(addr DOHServer) (*net.Dialer, error)

Types

type DOHServer

type DOHServer string
const (
	Alicloud   DOHServer = "https://dns.alidns.com/dns-query"
	Cloudflare DOHServer = "https://cloudflare-dns.com/dns-query"
	Google     DOHServer = "https://dns.google/dns-query"
	Quad9      DOHServer = "https://dns.quad9.net/dns-query"
	OpenDNS    DOHServer = "https://doh.opendns.com/dns-query"
	AdGuard    DOHServer = "https://dns.adguard.com/dns-query"
)

type DialFunc

type DialFunc func(c context.Context, network string, address string) (net.Conn, error)

Jump to

Keyboard shortcuts

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