Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultProvides is default provides, Recommended (Secure) DefaultProvides = iota // SecuredProvides Provides: Security blocklist, DNSSEC, No EDNS Client-Subnet sent SecuredProvides // UnsecuredProvides Provides: No security blocklist, no DNSSEC, No EDNS Client-Subnet sent UnsecuredProvides )
Variables ¶
View Source
var ( // Upstream is DoH query upstream Upstream = map[int]string{ DefaultProvides: "https://9.9.9.9:5053/dns-query", SecuredProvides: "https://dns9.quad9.net:5053/dns-query", UnsecuredProvides: "https://dns10.quad9.net:5053/dns-query", } )
Functions ¶
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a DoH provider client
func (*Provider) ECSQuery ¶
func (c *Provider) ECSQuery(ctx context.Context, d dns.Domain, t dns.Type, s dns.ECS) (*dns.Response, error)
ECSQuery do DoH query with the edns0-client-subnet option
func (*Provider) SetProvides ¶
SetProvides set upstream provides type, quad9 does NOT supported
Click to show internal directories.
Click to hide internal directories.