Documentation
¶
Index ¶
Constants ¶
View Source
const ( // DefaultProvider is default provider DefaultProvider = iota // SecuredProvider Security blocklist, DNSSEC, No EDNS Client-Subnet sent SecuredProvider // UnsecuredProvider No security blocklist, no DNSSEC, No EDNS Client-Subnet sent UnsecuredProvider // SecuredECSProvider Security blocklist, DNSSEC, With EDNS Client-Subnet sent SecuredECSProvider )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is DoH provider client
func (*Client) Query ¶
func (c *Client) Query(ctx context.Context, d dns.Domain, t dns.Type, s ...dns.ECS) (*dns.Response, error)
Query do DoH query with the edns0-client-subnet option
func (*Client) SetProvider ¶
SetProvider set upstream provider type, quad9 does NOT supported
Click to show internal directories.
Click to hide internal directories.