Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultProvides is default provides DefaultProvides = iota )
Variables ¶
View Source
var ( // Upstream is DoH query upstream Upstream = map[int]string{ DefaultProvides: "https://223.5.5.5/resolve", } )
Functions ¶
Types ¶
type AliDNSResponse ¶
type AliDNSResponse struct { Status int `json:"Status"` TC bool `json:"TC"` RD bool `json:"RD"` RA bool `json:"RA"` AD bool `json:"AD"` CD bool `json:"CD"` Question dns.Question `json:"Question"` Answer []dns.Answer `json:"Answer"` }
Alidns dns query response
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, alidns does NOT supported
Click to show internal directories.
Click to hide internal directories.