myDOH

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: BSD-2-Clause Imports: 10 Imported by: 0

README

myDOH

DNS OVER HTTP QUERY PACKAGE

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AliDoH = DoHProvider{
		Name:     "aliyun",
		Endpoint: "https://dns.alidns.com/dns-query",
	}
	TencentDoH = DoHProvider{
		Name:     "tencent",
		Endpoint: "https://doh.pub/dns-query",
	}
	CloudflareDoH = DoHProvider{
		Name:     "cloudflare",
		Endpoint: "https://cloudflare-dns.com/dns-query",
	}
)

Functions

func QueryTxt

func QueryTxt(ctx context.Context, timeout time.Duration, domain string) ([]string, error)

func QueryTxtByProvider

func QueryTxtByProvider(ctx context.Context, timeout time.Duration, domain string, provider DoHProvider) ([]string, error)

Types

type DoHProvider

type DoHProvider struct {
	Name     string
	Endpoint string
}

Jump to

Keyboard shortcuts

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